diff options
author | Arun Agrawal <arunagw@gmail.com> | 2013-05-24 11:20:43 +0200 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2013-05-24 11:20:43 +0200 |
commit | 0e14973a3368945d9a7fddb4bfeefe3fc2f2a246 (patch) | |
tree | df7bb42f0850895d0aea3a4ad1de237d970a84f1 /activerecord | |
parent | b75c8e58ab2ea055324c6f95127b5b940e758d57 (diff) | |
download | rails-0e14973a3368945d9a7fddb4bfeefe3fc2f2a246.tar.gz rails-0e14973a3368945d9a7fddb4bfeefe3fc2f2a246.tar.bz2 rails-0e14973a3368945d9a7fddb4bfeefe3fc2f2a246.zip |
It's scoped in 3-2-stable!
scope => scoped
Diffstat (limited to 'activerecord')
-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 dab57bab88..5296cb7282 100644 --- a/activerecord/lib/active_record/associations/has_many_association.rb +++ b/activerecord/lib/active_record/associations/has_many_association.rb @@ -89,7 +89,7 @@ module ActiveRecord records.each { |r| r.destroy } update_counter(-records.length) unless inverse_updates_counter_cache? else - scope = self.scope.where(reflection.klass.primary_key => records) + scope = self.scoped.where(reflection.klass.primary_key => records) if method == :delete_all update_counter(-scope.delete_all) |