-
Notifications
You must be signed in to change notification settings - Fork 899
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
paper_trail doesn't seem to work with acts-as-taggable-on #224
Comments
Can you please provide more detailed information on how to reproduce this? Just attempted to and was unable to do so. |
Sure, sorry. This would need a class TestModel < ActiveRecord::Base
acts_as_taggable
has_paper_trail
end
describe TestModel do
it "is broken" do
PaperTrail.enabled = true
model = TestModel.new tag_list: 'foo, bar'
model.save!
model.update_attributes(tag_list: 'bar, baz')
end
end I'm not sure if these specific versions are necessary or not, but I'm on rails 4 and ruby 2, so this is an excerpt from my Gemfile:
|
I'm also seeing this |
I believe this fix only made it into the master branch, is it possible to get it into the rails4 branch as well? Thanks! |
@speedmanly - Just merged it into the |
@fullbridge-batkins Thanks so much!! |
Seems paper_trail doesn't track tag list changes under Rails 5. I think it may have something to do with API changes, as per this issue. Anybody else experiencing this? |
Hi Dhruv, I was just discussing this with someone on S.O. (https://stackoverflow.com/questions/45156752/rails-how-to-enable-papertrail-auditing-for-tags)
I haven't heard back from them if they tried either. |
paper_trail tries to set the fake attributes that acts-as-taggable-on uses resulting in:
The text was updated successfully, but these errors were encountered: