From ee07950c03bf8aab703191d73165eb206f9f55ef Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Fri, 2 Apr 2010 17:48:57 +0100 Subject: Scope#method_missing can safely rely on Relation#method_missing --- activerecord/lib/active_record/named_scope.rb | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/named_scope.rb b/activerecord/lib/active_record/named_scope.rb index 4203e36239..3efcff11ca 100644 --- a/activerecord/lib/active_record/named_scope.rb +++ b/activerecord/lib/active_record/named_scope.rb @@ -169,16 +169,6 @@ module ActiveRecord end end - private - - def method_missing(method, *args, &block) - if klass.respond_to?(method) - with_scope(self) { klass.send(method, *args, &block) } - else - super - end - end - end end -- cgit v1.2.3