aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing/route_set.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2018-10-02 16:04:23 -0400
committerRafael Mendonça França <rafaelmfranca@gmail.com>2018-10-02 16:04:23 -0400
commit92fece96da28d9f641bc8a8db1187b91c94cabfb (patch)
treeb42943a968ce869a9d716b1f798e861d7700bffb /actionpack/lib/action_dispatch/routing/route_set.rb
parent59a6ba4bd585f53a02b118011599b835e47773ea (diff)
parentc401c43850e79a4d994e22dd8d82a69612bb947f (diff)
downloadrails-92fece96da28d9f641bc8a8db1187b91c94cabfb.tar.gz
rails-92fece96da28d9f641bc8a8db1187b91c94cabfb.tar.bz2
rails-92fece96da28d9f641bc8a8db1187b91c94cabfb.zip
Merge pull request #34051 from gmcgibbon/module_parent_method_rename
Prefix Module#parent, Module#parents, and Module#parent_name with module
Diffstat (limited to 'actionpack/lib/action_dispatch/routing/route_set.rb')
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index 3b7611acc0..2c811b5e55 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -444,7 +444,7 @@ module ActionDispatch
end
def include_helpers_now(klass, include_path_helpers)
- namespace = klass.parents.detect { |m| m.respond_to?(:railtie_include_helpers) }
+ namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_include_helpers) }
if namespace && namespace.railtie_namespace.routes != self
namespace.railtie_include_helpers(klass, include_path_helpers)