Skip to content
Snippets Groups Projects

Don't show "you are already signed in" message on registration route

Merged Annabel Dunstone Gray requested to merge notice-already-authenticated into master
Files
3
@@ -10,7 +10,7 @@ module SkipsAlreadySignedInMessage
@@ -10,7 +10,7 @@ module SkipsAlreadySignedInMessage
# rubocop: disable Rails/LexicallyScopedActionFilter
# rubocop: disable Rails/LexicallyScopedActionFilter
# The actions are defined in Devise
# The actions are defined in Devise
skip_before_action :require_no_authentication, only: [:new, :create]
skip_before_action :require_no_authentication, only: [:new, :create]
prepend_before_action :require_no_authentication_without_flash, only: [:new, :create]
before_action :require_no_authentication_without_flash, only: [:new, :create]
# rubocop: enable Rails/LexicallyScopedActionFilter
# rubocop: enable Rails/LexicallyScopedActionFilter
end
end
Loading