It's scoped in 3-2-stable!

scope => scoped
This commit is contained in:
Arun Agrawal
2013-05-24 11:20:43 +02:00
parent b75c8e58ab
commit 0e14973a33

View File

@@ -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)