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

Fix dirty checking for subsequent calls to taggable_on. Fixes #321. #339

Merged
merged 2 commits into from
Apr 14, 2013

Conversation

shekibobo
Copy link
Contributor

It was discovered that the dirty module was not being called on tags within a context. I added the specs to detect the issue (and cleaned up others for single-assertion testing for better coverage).

It turns out that all of the include calls were happening only the first time acts_as_taggable_on was being called, and all subsequent calls ignored those includes, despite the context-specific actions that happen when those modules are included.

I'm not sure, but there may be other issues related to non-default contexts that may be resolved by this.

I'll go through and double check that each of these includes are required every time we add taggable types and notify you if any other changes need to be made before this is pulled in.

Related mbleigh#321.

Split tests for single-assertions
@shekibobo
Copy link
Contributor Author

Alright, I'm good to go on this PR.

tilsammans added a commit that referenced this pull request Apr 14, 2013
Fix dirty checking for subsequent calls to taggable_on. Fixes #321.
@tilsammans tilsammans merged commit 9496a7f into mbleigh:master Apr 14, 2013
@tilsammans
Copy link
Contributor

Thank you very much, it looks good to me. This will come along with the 2.5.0 version of the gem. (2.4.0 will be out in a few days)

ches added a commit to ches/acts-as-taggable-on that referenced this pull request Sep 26, 2013
ches added a commit to ches/acts-as-taggable-on that referenced this pull request Dec 10, 2013
tekniklr pushed a commit to tekniklr/acts-as-taggable-on that referenced this pull request Mar 19, 2021
Fix dirty checking for subsequent calls to taggable_on. Fixes mbleigh#321.
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.

3 participants