Module: SkipsAlreadySignedInMessage
- Extended by:
- ActiveSupport::Concern
- Included in:
- RegistrationsController, SessionsController
- Defined in:
- app/controllers/concerns/skips_already_signed_in_message.rb
Overview
This concern can be included in devise controllers to skip showing an “already signed in” warning on registrations and logins
Instance Method Summary collapse
Instance Method Details
#require_no_authentication_without_flash ⇒ Object
17 18 19 20 21 22 23 |
# File 'app/controllers/concerns/skips_already_signed_in_message.rb', line 17 def require_no_authentication_without_flash require_no_authentication return unless flash[:alert] == I18n.t('devise.failure.already_authenticated') flash[:alert] = nil end |