mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Merge pull request #3452 from jaume-prat/master
workaround for mountable Engines with Rails 4.2
This commit is contained in:
commit
baef67cee7
1 changed files with 4 additions and 1 deletions
|
@ -115,7 +115,10 @@ module Devise
|
|||
opts[:format] = request_format unless skip_format?
|
||||
|
||||
config = Rails.application.config
|
||||
opts[:script_name] = (config.relative_url_root if config.respond_to?(:relative_url_root))
|
||||
|
||||
if config.respond_to?(:relative_url_root) && config.relative_url_root.present?
|
||||
opts[:script_name] = config.relative_url_root
|
||||
end
|
||||
|
||||
context = send(Devise.available_router_name)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue