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

Redirect admin to dashboard after invitation accept #394

Merged
merged 1 commit into from
Jan 1, 2024

Conversation

Tomaszabc
Copy link
Contributor

🔗 Issue

#264

✍️ Description

Redirect admin to dashboard after invitation accept

📷 Screenshots/Demos

Nagranie.z.ekranu.2023-12-29.o.16.07.55.mov

@@ -29,4 +29,8 @@ def user_params
.permit(:first_name, :last_name, :email,
staff_account_attributes: [:roles])
end

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. So this method is overriding the same method in DeviseInvitable::Controllers::Helpers ?

Copy link
Contributor Author

@Tomaszabc Tomaszabc Dec 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. This method override the same method existing in Devise Invitable gem. I found method name "after_accept_path_for(resource)" in Devise Invitable documentation.
obraz

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah nice find!

@kasugaijin
Copy link
Collaborator

@all-contributors
please add @Tomaszabc for code.

Copy link
Contributor

@kasugaijin

I've put up a pull request to add @Tomaszabc! 🎉

Copy link
Collaborator

@kasugaijin kasugaijin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@kasugaijin kasugaijin merged commit 63ada50 into rubyforgood:main Jan 1, 2024
3 checks passed
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.

2 participants