Method: Devise::FailureApp#redirect_url

Defined in:
lib/devise/failure_app.rb

#redirect_urlObject (protected)



128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# File 'lib/devise/failure_app.rb', line 128

def redirect_url
  if warden_message == :timeout
    flash[:timedout] = true if is_flashing_format?

    path = if request.get?
      attempted_path
    else
      request.referrer
    end

    path || scope_url
  else
    scope_url
  end
end