Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default flash notice on SessionsController#destroy #178

Merged
merged 3 commits into from
Nov 7, 2023

Conversation

lucianghinda
Copy link
Contributor

What

This commit adds a default flash notice to destroy action while keeping the flexibility to customize redirect options via config.

Why

When creating a session in case of success, a flash notice is displayed, while when destroying a session, there was no flash notice displayed in case of success.

Also, having a successful flash message for destroying a session makes the system tests in the apps using this gem a bit easier to check if the logout happened successfully.

lucianghinda and others added 3 commits November 1, 2023 05:59
This commit adds a default flash notice to destroy action
while also keeping the flexibility to customize redirect options
via config.

When creating a session in case of success there is a flash notice
displayed while when destroying a session there was not flash noticed
displayed in case of success.

Also having a successful flash message for destroying a session makes
the system tests in the apps using this gem a bit easier to check
if the logout happened successfully.
@mikker mikker merged commit 8855a80 into mikker:master Nov 7, 2023
3 checks passed
@mikker
Copy link
Owner

mikker commented Nov 7, 2023

❤️🧡💛💚💙💜

@lucianghinda lucianghinda deleted the lg/add-notice-when-sign-out branch November 7, 2023 09:35
@yshmarov
Copy link
Contributor

yshmarov commented Nov 8, 2023

heyy @lucianghinda nice to see you here! 🤗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants