aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-12-15 20:26:33 +0100
committerJosé Valim <jose.valim@gmail.com>2011-12-15 20:47:26 +0100
commit1e8b75181306ada87b1a4b05d1551348dd916f91 (patch)
tree6a2594022a82a3fabef5970ff112729d949ca04b /activerecord/lib/active_record/relation.rb
parent22bd21dc0fc0535f1de93d22569e8769c2e43949 (diff)
downloadrails-1e8b75181306ada87b1a4b05d1551348dd916f91.tar.gz
rails-1e8b75181306ada87b1a4b05d1551348dd916f91.tar.bz2
rails-1e8b75181306ada87b1a4b05d1551348dd916f91.zip
Make with_scope public so we stop using send :bomb:
Diffstat (limited to 'activerecord/lib/active_record/relation.rb')
-rw-r--r--activerecord/lib/active_record/relation.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation.rb b/activerecord/lib/active_record/relation.rb
index a1aa764991..8aaab10b1e 100644
--- a/activerecord/lib/active_record/relation.rb
+++ b/activerecord/lib/active_record/relation.rb
@@ -251,7 +251,7 @@ module ActiveRecord
# Please check unscoped if you want to remove all previous scopes (including
# the default_scope) during the execution of a block.
def scoping
- @klass.send(:with_scope, self, :overwrite) { yield }
+ @klass.with_scope(self, :overwrite) { yield }
end
# Updates all records with details given if they match a set of conditions supplied, limits and order can