aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2018-10-05 09:58:29 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2018-10-05 09:58:29 +0900
commit9422433e1a875a3f3c3179fff32fb05858604dc6 (patch)
tree37ab3ee385929f0de89cc320c2039b12116bda12 /actionpack
parent13bbdc09ece4f48e9b2537092a4505a3942e373b (diff)
downloadrails-9422433e1a875a3f3c3179fff32fb05858604dc6.tar.gz
rails-9422433e1a875a3f3c3179fff32fb05858604dc6.tar.bz2
rails-9422433e1a875a3f3c3179fff32fb05858604dc6.zip
Don't use deprecated `Module#parents`
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/abstract_controller/railties/routes_helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/abstract_controller/railties/routes_helpers.rb b/actionpack/lib/abstract_controller/railties/routes_helpers.rb
index b6e5631a4e..fbd93705ed 100644
--- a/actionpack/lib/abstract_controller/railties/routes_helpers.rb
+++ b/actionpack/lib/abstract_controller/railties/routes_helpers.rb
@@ -7,7 +7,7 @@ module AbstractController
Module.new do
define_method(:inherited) do |klass|
super(klass)
- if namespace = klass.parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
+ if namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
else
klass.include(routes.url_helpers(include_path_helpers))