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:
parent
c8c638ed44
commit
817b0c8758
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue