module ActiveRecord::Core::ClassMethods

def arel_table # :nodoc:

:nodoc:
Returns an instance of Arel::Table loaded with the current table name.
def arel_table # :nodoc:
  @arel_table ||= Arel::Table.new(table_name, klass: self)
end