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

Remove flags #21

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open

Conversation

gordonbisnor
Copy link

The ability to remove flags on an item was a feature that I needed.

I'm doing this by setting unflag = '1' on flaggable, with a before save callback that calls destroy all flaggings if unflag is set, example: https://gist.github.com/gordonbisnor/9ceb1bdaff6748891e2f

Wondered if you would want to merge this into the original project.

Thanks for the great gem!

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.

1 participant