aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorAndrew White <pixeltrix@users.noreply.github.com>2018-02-19 15:04:23 +0000
committerGitHub <noreply@github.com>2018-02-19 15:04:23 +0000
commit0f05c87e7a542e7f7e7dafca4dd9b2264985a86d (patch)
tree5301a88ffb0ccadce8b1f62fffd13ccafa202209 /actionpack
parentdc6185b462dc423e9e6fa89a64aa54427ff7660d (diff)
parent899e2dad03a319a9da86d8dd7b73de4ac9382ff7 (diff)
downloadrails-0f05c87e7a542e7f7e7dafca4dd9b2264985a86d.tar.gz
rails-0f05c87e7a542e7f7e7dafca4dd9b2264985a86d.tar.bz2
rails-0f05c87e7a542e7f7e7dafca4dd9b2264985a86d.zip
Merge pull request #32032 from utilum/method_redefined
Avoid method_redefined warnings in RouteSet::NamedRouteCollection
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index ff6998ae31..a29a5a04ef 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -153,13 +153,13 @@ module ActionDispatch
url_name = :"#{name}_url"
@path_helpers_module.module_eval do
- define_method(path_name) do |*args|
+ redefine_method(path_name) do |*args|
helper.call(self, args, true)
end
end
@url_helpers_module.module_eval do
- define_method(url_name) do |*args|
+ redefine_method(url_name) do |*args|
helper.call(self, args, false)
end
end