Class: Devise::CustomFailure

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

Instance Method Summary collapse

Instance Method Details

#redirect_urlObject



3
4
5
# File 'lib/devise/custom_failure.rb', line 3

def redirect_url
  cas.new_user_session_url
end

#respondObject

You need to override respond to eliminate recall



8
9
10
11
12
13
14
# File 'lib/devise/custom_failure.rb', line 8

def respond
  if http_auth?
    http_auth
  else
    redirect
  end
end