Class: Devise::Rownd::CustomAuthFailure
- Inherits:
-
FailureApp
- Object
- FailureApp
- Devise::Rownd::CustomAuthFailure
- Defined in:
- lib/devise/rownd/custom_failure.rb
Instance Method Summary collapse
Instance Method Details
#i18n_message(default = nil) ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/devise/rownd/custom_failure.rb', line 18 def (default = nil) = || default || :unauthenticated return :rownd_authentication_required if .to_sym == :unauthenticated super(default) end |
#redirect ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/devise/rownd/custom_failure.rb', line 4 def redirect store_location! if is_flashing_format? if flash[:timedout] && flash[:alert] flash.keep(:timedout) flash.keep(:alert) else key = == :rownd_authentication_required ? :rownd_alert : :alert flash[key] = end end redirect_to redirect_url end |