mirror of
https://github.com/github/rails.git
synced 2026-01-09 14:48:01 -05:00
It's scoped in 3-2-stable!
scope => scoped
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user