Permalink
Browse files

It's scoped in 3-2-stable!

scope => scoped
  • Loading branch information...
arunagw committed May 24, 2013
1 parent b75c8e5 commit 0e14973a3368945d9a7fddb4bfeefe3fc2f2a246
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/associations/has_many_association.rb
@@ -89,7 +89,7 @@ def delete_records(records, method)
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)

0 comments on commit 0e14973

Please sign in to comment.