From 8166e4b0c3db7837e3880e44b56800fe531cdcd2 Mon Sep 17 00:00:00 2001 From: Rodrigo Navarro Date: Wed, 8 Jun 2011 16:56:01 -0300 Subject: No need to create a new Arel::Table, as the arel_table method already creates a new one --- activerecord/lib/active_record/base.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'activerecord') diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index c2b09ad393..900abd323b 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -660,7 +660,6 @@ module ActiveRecord #:nodoc: @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 -- cgit v1.2.3