Prefix root_path with main_app so that ofn's route is used. The spree root path is no longer defined, we dont need it

This commit is contained in:
luisramos0
2019-12-26 14:40:55 +00:00
parent 22de7252d0
commit 694995ea5d

View File

@@ -34,7 +34,7 @@ module Spree
end
selected = if options[:match_path]
request.fullpath.starts_with?("#{spree.root_path}admin#{options[:match_path]}")
request.fullpath.starts_with?("#{main_app.root_path}admin#{options[:match_path]}")
else
args.include?(controller.controller_name.to_sym)
end