-
Notifications
You must be signed in to change notification settings - Fork 895
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
TypeError (no implicit conversion of nil into String) #961
Comments
Hi, thanks for testing the experimental associations tracking feature, and thanks for the bug report. Per our contributing guide please use our bug report template. |
Hey @jaredbeck, my script:
|
Thanks! Using your bug report script, I was able to reproduce the Because the associations-tracking feature is experimental, not recommended for production, and still under development, it is not a personal priority for me. (I also do not use it on any of my own projects) However, I'll do what I can to help you develop a fix. The first step will be to pare down your bug report into a minimal failing test. Questions:
|
|
Thanks. For those questions, I think we should focus on what has an effect on this bug. We want to identify the minimum requirements for reproducing the bug. |
@jaredbeck same error without association tracking over STI |
I'm looking at this more closely and it seems like a misconfiguration. Every model that In the provided bug report, I think we can easily help people avoid this misconfiguration by raising an error if What do you think? |
Instead of crashing when misconfigured Custom Version Classes are used, an error will be raised earlier, with a much more helpful message. [Fixes #961]
Instead of crashing when misconfigured Custom Version Classes are used, an error will be raised earlier, with a much more helpful message. [Fixes #961]
Instead of crashing when misconfigured Custom Version Classes are used, an error will be raised earlier, with a much more helpful message. [Fixes #961]
Instead of crashing when misconfigured Custom Version Classes are used, an error will be raised earlier, with a much more helpful message. [Fixes #961]
Closed by #1040 to be released in 9.0.0 |
Instead of crashing when misconfigured Custom Version Classes are used, an error will be raised earlier, with a much more helpful message. [Fixes paper-trail-gem#961]
I'm trying to use the experimental feature (track associations) but I'm facing a issue:
I have the following models:
UserVersion:
User:
Address:
So, the issue is: associations aren't being tracked when I have a "parent" custom version class...
Always when I try to create/update "addresses", it show the following error:
If I remove the line has_paper_trail from Address model it works 100% without errors (but, of course, without versioning).
It seems like it searches for the
versions
(default) table instead of go touser_versions
...I opened a question in SO, however it seems like it's a bug (it's normal in a experimental feature)..
I'm just trying to find a way to do this... even with a workaround.
Thanks in advance.
The text was updated successfully, but these errors were encountered: