mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Scope#method_missing can safely rely on Relation#method_missing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user