Only proxy to application controller if it exists.
This commit is contained in:
parent
fd0e929087
commit
1152fda687
|
@ -20,7 +20,11 @@ module Devise
|
|||
end
|
||||
|
||||
def self.default_url_options(*args)
|
||||
ApplicationController.default_url_options(*args)
|
||||
if defined?(ApplicationController)
|
||||
ApplicationController.default_url_options(*args)
|
||||
else
|
||||
{}
|
||||
end
|
||||
end
|
||||
|
||||
def respond
|
||||
|
|
|
@ -3,7 +3,11 @@ module Devise
|
|||
include Rails.application.routes.url_helpers
|
||||
|
||||
def self.default_url_options(*args)
|
||||
ApplicationController.default_url_options(*args)
|
||||
if defined?(ApplicationController)
|
||||
ApplicationController.default_url_options(*args)
|
||||
else
|
||||
{}
|
||||
end
|
||||
end
|
||||
|
||||
def initialize(env, scope)
|
||||
|
|
Loading…
Reference in New Issue