-
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
.touch doesn't create a version #329
Comments
So I sort of think that We may be able to override the |
Did some more research into this. Apparently there is an |
@bokmann - I decided to add a I've been thinking it may make sense to change the callback that gets fired when you update a model's attributes to use an |
I have a particular issue I'm solving by making related elements in a object graph call '.touch' on a root node of the graph, forcing the updated_at field to change (which gives me the bounds on a date query I'm doing).
It would be really useful if .touch created a new version. As a workaround I have created a method called '.tickle' that increments an integer that I otherwise ignore, but that is slightly hackish.
Potentially related to #323
The text was updated successfully, but these errors were encountered: