Permalink
Browse files

Scope#method_missing can safely rely on Relation#method_missing

  • Loading branch information...
1 parent 0be31f8 commit ee07950c03bf8aab703191d73165eb206f9f55ef @lifo lifo committed Apr 2, 2010
Showing with 0 additions and 10 deletions.
  1. +0 −10 activerecord/lib/active_record/named_scope.rb
@@ -169,16 +169,6 @@ def ==(other)
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

0 comments on commit ee07950

Please sign in to comment.