Permalink
Browse files

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

… creates a new one
  • Loading branch information...
1 parent 7d537b2 commit 8166e4b0c3db7837e3880e44b56800fe531cdcd2 @reu reu committed Jun 8, 2011
Showing with 0 additions and 1 deletion.
  1. +0 −1 activerecord/lib/active_record/base.rb
@@ -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

0 comments on commit 8166e4b

Please sign in to comment.