Module: ConnectionManager::Core
- Defined in:
- lib/connection_manager/core.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#arel_table_with_check_name ⇒ Object
We want to make sure we get the full table name with schema.
Class Method Details
.extended(base) ⇒ Object
13 14 15 16 17 |
# File 'lib/connection_manager/core.rb', line 13 def self.extended(base) class << base self.alias_method_chain :arel_table, :check_name end end |
.included(base) ⇒ Object
9 10 11 |
# File 'lib/connection_manager/core.rb', line 9 def self.included(base) base.alias_method_chain :arel_table, :check_name end |
Instance Method Details
#arel_table_with_check_name ⇒ Object
We want to make sure we get the full table name with schema
4 5 6 7 |
# File 'lib/connection_manager/core.rb', line 4 def arel_table_with_check_name # :nodoc: @arel_table = Arel::Table.new(table_name, arel_engine) unless (@arel_table && (@arel_table.name == self.table_name)) @arel_table end |