Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

No need to create a new Arel::Table, as the arel_table method already…

… creates a new one
  • Loading branch information...
commit 8166e4b0c3db7837e3880e44b56800fe531cdcd2 1 parent 7d537b2
Rodrigo Navarro reu authored
Showing with 0 additions and 1 deletion.
  1. +0 −1  activerecord/lib/active_record/base.rb
1  activerecord/lib/active_record/base.rb
View
@@ -660,7 +660,6 @@ def set_table_name(value = nil, &block)
@quoted_table_name = nil
define_attr_method :table_name, value, &block
- @arel_table = Arel::Table.new(table_name, arel_engine)
@relation = Relation.new(self, arel_table)
end
alias :table_name= :set_table_name
Please sign in to comment.
Something went wrong with that request. Please try again.