aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/named_scope.rb
diff options
context:
space:
mode:
authorŁukasz Strzałkowski <lukasz.strzalkowski@gmail.com>2010-07-17 17:42:17 +0800
committerAaron Patterson <aaron.patterson@gmail.com>2010-07-19 23:44:50 +0800
commit661fd98aad027b6171253828ed89115f30fac46f (patch)
tree46fb324e4b68f98754a05faf1f3b72fc6af3f1e8 /activerecord/lib/active_record/named_scope.rb
parent7637b7184a990ae51f3ab10e2af99ff88cb633ea (diff)
downloadrails-661fd98aad027b6171253828ed89115f30fac46f.tar.gz
rails-661fd98aad027b6171253828ed89115f30fac46f.tar.bz2
rails-661fd98aad027b6171253828ed89115f30fac46f.zip
Make use of redefine_method, removed some more redefining warnings
Diffstat (limited to 'activerecord/lib/active_record/named_scope.rb')
-rw-r--r--activerecord/lib/active_record/named_scope.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/named_scope.rb b/activerecord/lib/active_record/named_scope.rb
index 849ec9c884..6596c695e2 100644
--- a/activerecord/lib/active_record/named_scope.rb
+++ b/activerecord/lib/active_record/named_scope.rb
@@ -105,7 +105,7 @@ module ActiveRecord
extension ? relation.extending(extension) : relation
end
- singleton_class.send :define_method, name, &scopes[name]
+ singleton_class.send(:redefine_method, name, &scopes[name])
end
def named_scope(*args, &block)