mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
do not set :script_name option with nil
This commit is contained in:
parent
a2e0e9c187
commit
af8d38e45b
1 changed files with 4 additions and 1 deletions
|
@ -111,7 +111,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