Class: Portfolio::CustomFailure

Inherits:
Devise::FailureApp
  • Object
show all
Defined in:
lib/portfolio/custom_failure.rb

Instance Method Summary collapse

Instance Method Details

#redirect_urlObject



6
7
8
# File 'lib/portfolio/custom_failure.rb', line 6

def redirect_url
   Engine.routes.url_helpers.new_admin_user_session_path
end

#respondObject

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