diff options
author | Rodrigo Navarro <rnavarro1@gmail.com> | 2011-06-08 16:56:01 -0300 |
---|---|---|
committer | Rodrigo Navarro <rnavarro1@gmail.com> | 2011-06-08 16:56:01 -0300 |
commit | 8166e4b0c3db7837e3880e44b56800fe531cdcd2 (patch) | |
tree | b73cd6a2da07b8cfba9a50c4ee6e898bd1f639c4 /activerecord/lib | |
parent | 7d537b2106ab21a28e901e6e98c74df1f761243a (diff) | |
download | rails-8166e4b0c3db7837e3880e44b56800fe531cdcd2.tar.gz rails-8166e4b0c3db7837e3880e44b56800fe531cdcd2.tar.bz2 rails-8166e4b0c3db7837e3880e44b56800fe531cdcd2.zip |
No need to create a new Arel::Table, as the arel_table method already creates a new one
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/base.rb | 1 |
1 files changed, 0 insertions, 1 deletions
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 |