Scope#method_missing can safely rely on Relation#method_missing

This commit is contained in:
Pratik Naik
2010-04-02 17:48:57 +01:00
parent 0be31f8563
commit ee07950c03

View File

@@ -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