Method: Devise::FailureApp.default_url_options
- Defined in:
- lib/devise/failure_app.rb
.default_url_options(*args) ⇒ Object
Try retrieving the URL options from the parent controller (usually ApplicationController). Instance methods are not supported at the moment, so only the class-level attribute is used.
34 35 36 37 38 39 40 |
# File 'lib/devise/failure_app.rb', line 34 def self.(*args) if defined?(Devise.parent_controller.constantize) Devise.parent_controller.constantize.try(:default_url_options) || {} else {} end end |