Class: Portfolio::CustomFailure
- Inherits:
-
Devise::FailureApp
- Object
- Devise::FailureApp
- Portfolio::CustomFailure
- Defined in:
- lib/portfolio/custom_failure.rb
Instance Method Summary collapse
- #redirect_url ⇒ Object
-
#respond ⇒ Object
You need to override respond to eliminate recall.
Instance Method Details
#redirect_url ⇒ Object
6 7 8 |
# File 'lib/portfolio/custom_failure.rb', line 6 def redirect_url Engine.routes.url_helpers.new_admin_user_session_path end |
#respond ⇒ Object
You need to override respond to eliminate recall
11 12 13 14 15 16 17 |
# File 'lib/portfolio/custom_failure.rb', line 11 def respond if http_auth? http_auth else redirect end end |