Don't use deprecated Module#parents
This commit is contained in:
parent
13bbdc09ec
commit
9422433e1a
@ -7,7 +7,7 @@ def self.with(routes, include_path_helpers = true)
|
||||
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 New Issue
Block a user