-
Notifications
You must be signed in to change notification settings - Fork 896
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
changeset not work #446
Comments
What happens if you load up a console and run If you get a return value from that beyond {}, then here is the codeblock it tries to execute when you invoke |
I run I run
it works and returns and last |
It's hard to say what exactly the issue is with this data. I would recommend running |
Thank you, |
@piya23300 - did you give that a try? |
@batter Thank you to alert me haha I forgot it ^^ I tests it, I found error
I think because my class use STI
and then
I try to fix it , I found cause from When I new version object I can't solve it. |
Does #362 help you at all? I'll have to take a closer look at this and try to generate a test case. If you can provide a dummy app or PR w/ failing tests that would help a lot. |
This is a dup of #404, closed in favor of that one, clearly there is an issue when PaperTrail is used in conjunction with STI that needs to be addressed. |
I use rails 4.1.8 , paper_trail 3.0.6
event = 'update'
object_changes = "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nstatus_id:\n- 1\n- 2\n"
when I call object.versions.last.changeset, it returns {}
Cloud you help me?
The text was updated successfully, but these errors were encountered: