diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-13 12:33:54 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-13 12:37:18 -0700 |
commit | af3e39358cacb93e39f6c7952314adb3892e3a6f (patch) | |
tree | 8d773e99e1b7187b4affef9cea06e0df0a7eef59 /activerecord/lib | |
parent | e18bd86314184b6b4fb51a682d66e0a88172ce7a (diff) | |
download | rails-af3e39358cacb93e39f6c7952314adb3892e3a6f.tar.gz rails-af3e39358cacb93e39f6c7952314adb3892e3a6f.tar.bz2 rails-af3e39358cacb93e39f6c7952314adb3892e3a6f.zip |
removing references to arel constants
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/associations/has_many_association.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/has_many_association.rb b/activerecord/lib/active_record/associations/has_many_association.rb index 9a12a1866a..ccc01d2b57 100644 --- a/activerecord/lib/active_record/associations/has_many_association.rb +++ b/activerecord/lib/active_record/associations/has_many_association.rb @@ -76,7 +76,7 @@ module ActiveRecord else relation = Arel::Table.new(@reflection.table_name) relation.where(relation[@reflection.primary_key_name].eq(@owner.id). - and(Arel::Predicates::In.new(relation[@reflection.klass.primary_key], records.map { |r| r.id })) + and(relation[@reflection.klass.primary_key].in(records.map { |r| r.id })) ).update(relation[@reflection.primary_key_name] => nil) @owner.class.update_counters(@owner.id, cached_counter_attribute_name => -records.size) if has_cached_counter? |