1
0
Fork 0
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:
Jaume Prat 2015-02-05 14:33:09 +01:00
parent a2e0e9c187
commit af8d38e45b

View file

@ -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)