diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2010-04-02 17:48:57 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2010-04-02 18:57:45 +0100 |
commit | ee07950c03bf8aab703191d73165eb206f9f55ef (patch) | |
tree | bbb60c9a0d16833bacdd3fa0e65c112bbd926c3a | |
parent | 0be31f85639cf2f536c558819ef3ee45ba7d83a3 (diff) | |
download | rails-ee07950c03bf8aab703191d73165eb206f9f55ef.tar.gz rails-ee07950c03bf8aab703191d73165eb206f9f55ef.tar.bz2 rails-ee07950c03bf8aab703191d73165eb206f9f55ef.zip |
Scope#method_missing can safely rely on Relation#method_missing
-rw-r--r-- | activerecord/lib/active_record/named_scope.rb | 10 |
1 files changed, 0 insertions, 10 deletions
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 |