mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Don't use deprecated Module#parents
This commit is contained in:
parent
13bbdc09ec
commit
9422433e1a
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue