diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-12-21 01:39:18 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2018-12-21 01:39:18 +0900 |
commit | 8034dde023a64b98c6b3edb80a44e4cc23f8979f (patch) | |
tree | 38ad756d57390a272bceb7068c19ad1e25587689 /actionpack/lib/action_dispatch/routing | |
parent | 3da358ea83b86368021d6f289627d0682d24d30b (diff) | |
download | rails-8034dde023a64b98c6b3edb80a44e4cc23f8979f.tar.gz rails-8034dde023a64b98c6b3edb80a44e4cc23f8979f.tar.bz2 rails-8034dde023a64b98c6b3edb80a44e4cc23f8979f.zip |
Module#{define_method,alias_method,undef_method,remove_method} become public since Ruby 2.5
https://bugs.ruby-lang.org/issues/14133
Diffstat (limited to 'actionpack/lib/action_dispatch/routing')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/route_set.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb index 2ae75b0da8..2966c969f6 100644 --- a/actionpack/lib/action_dispatch/routing/route_set.rb +++ b/actionpack/lib/action_dispatch/routing/route_set.rb @@ -90,11 +90,11 @@ module ActionDispatch def clear! @path_helpers.each do |helper| - @path_helpers_module.send :remove_method, helper + @path_helpers_module.remove_method helper end @url_helpers.each do |helper| - @url_helpers_module.send :remove_method, helper + @url_helpers_module.remove_method helper end @routes.clear @@ -108,8 +108,8 @@ module ActionDispatch url_name = :"#{name}_url" if routes.key? key - @path_helpers_module.send :undef_method, path_name - @url_helpers_module.send :undef_method, url_name + @path_helpers_module.undef_method path_name + @url_helpers_module.undef_method url_name end routes[key] = route define_url_helper @path_helpers_module, route, path_name, route.defaults, name, PATH |