Call set_flash_message helper instead of flash accessor

This commit is contained in:
Renan Gurgel
2019-10-03 00:15:15 -03:00
parent f48b6f1651
commit 0f134f7030

View File

@@ -112,7 +112,7 @@ MESSAGE
end
if authenticated && resource = warden.user(resource_name)
flash[:alert] = I18n.t("devise.failure.already_authenticated")
set_flash_message(:alert, "already_authenticated", scope: "devise.failure")
redirect_to after_sign_in_path_for(resource)
end
end