Method: Devise::FailureApp#redirect

Defined in:
lib/devise/failure_app.rb

#redirectObject



86
87
88
89
90
91
92
93
94
95
96
97
# File 'lib/devise/failure_app.rb', line 86

def redirect
  store_location!
  if is_flashing_format?
    if flash[:timedout] && flash[:alert]
      flash.keep(:timedout)
      flash.keep(:alert)
    else
      flash[:alert] = i18n_message
    end
  end
  redirect_to redirect_url
end