mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #32032 from utilum/method_redefined
Avoid method_redefined warnings in RouteSet::NamedRouteCollection
This commit is contained in:
commit
0f05c87e7a
1 changed files with 2 additions and 2 deletions
|
@ -153,13 +153,13 @@ module ActionDispatch
|
||||||
url_name = :"#{name}_url"
|
url_name = :"#{name}_url"
|
||||||
|
|
||||||
@path_helpers_module.module_eval do
|
@path_helpers_module.module_eval do
|
||||||
define_method(path_name) do |*args|
|
redefine_method(path_name) do |*args|
|
||||||
helper.call(self, args, true)
|
helper.call(self, args, true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@url_helpers_module.module_eval do
|
@url_helpers_module.module_eval do
|
||||||
define_method(url_name) do |*args|
|
redefine_method(url_name) do |*args|
|
||||||
helper.call(self, args, false)
|
helper.call(self, args, false)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue