You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
Thanks for a great work. I run into small problem.
I'm not sure is it a feature or issue. For example:
t = Task.find 1
t.name = "new name"
t.save(false) # no validations
t.versions.last.changes
{"name" => [old name , new name]}
Works fine without any problems, but if I do through associations
Project
has_many :tasks
Project.tasks.last.attributes= {:id => 1 , :name = "new old name" }
Project.save(false)
Project.tasks.last.versions.last.changes
{"name" => [old name , new name]}
This wont work, Task model will be updated through associations, but version will remain the same it won't add a new one.
Thanks for Help
Marek
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Thanks for a great work. I run into small problem.
I'm not sure is it a feature or issue. For example:
t = Task.find 1
t.name = "new name"
t.save(false) # no validations
t.versions.last.changes
{"name" => [old name , new name]}
Works fine without any problems, but if I do through associations
Project
has_many :tasks
Project.tasks.last.attributes= {:id => 1 , :name = "new old name" }
Project.save(false)
Project.tasks.last.versions.last.changes
{"name" => [old name , new name]}
This wont work, Task model will be updated through associations, but version will remain the same it won't add a new one.
Thanks for Help
Marek
The text was updated successfully, but these errors were encountered: