1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Routes methods are public methods

This commit is contained in:
Akira Matsuda 2020-10-06 21:17:28 +09:00
parent c8c638ed44
commit 817b0c8758

View file

@ -255,7 +255,7 @@ module ActionDispatch
end
def handle_class_call(target, klass)
target.send get_method_for_class klass
target.public_send get_method_for_class klass
end
def handle_model(record)
@ -277,7 +277,7 @@ module ActionDispatch
mapping.call(target, [record], suffix == "path")
else
method, args = handle_model(record)
target.send(method, *args)
target.public_send(method, *args)
end
end