-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
acts_as_taggable changes in after_commit callback? #475
Comments
I'm not totally sure, but if you use cache, the cache column will be changed. |
It would be nice if |
I am using this gem with RailsAdmin, - I have got partial caching for my Taggable model, - if I save taggable, everything is great, when I assign to tag_list Taggable is saved and the cache is invalidated. BUT when the tag model is changed in RailsAdmin the cache is not invalidated. How can I run code when a Tag is saved? I tried to monkey patch ActsAsTaggableOn::Tag with a callback but it doesnt work. I am starting to think that I need to remove RailsAdmin or at least write my own admin for saving tags, or I need to write a sweeper to check which tags have been changed in the past hour. |
Is there a way to get a hold of changes from acts_as_taggable in the after_commit callback? Rails provides the previous_changes Hash for ActiveRecord object and was just wondering if acts-as-taggable had anything like it (I know of the _list_changed? method on acts_as taggable objects)
The text was updated successfully, but these errors were encountered: