Sha256: 4169d378d9b0681c4d51fd854c160ea21bf8c29fc4a56229a7d7604592f0709a
Contents?: true
Size: 697 Bytes
Versions: 6
Compression:
Stored size: 697 Bytes
Contents
module ConnectionManager module Core # We want to make sure we get the full table name with schema 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 def self.included(base) base.alias_method_chain :arel_table, :check_name end def self.extended(base) class << base self.alias_method_chain :arel_table, :check_name end end end end if ActiveRecord::VERSION::MAJOR == 4 ActiveRecord::Core::ClassMethods.send(:include,ConnectionManager::Core) else ActiveRecord::Base.extend ConnectionManager::Core end
Version data entries
6 entries across 6 versions & 1 rubygems