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
Is there a way to disable the dirty tracking functionality? This has been causing a lot of problems for us where documents with nested data structures aren't being saved because it doesn't think the attribute has changed, and rather than use the couchrest_attribute_will_change! method every time we need to save, we'd like to blanket turn off the functionality as we don't use it anyway.
Is that possible?
The text was updated successfully, but these errors were encountered:
Yeh, there's some real issues with the dirty tracking it would seem. As soon as you try to store data structures it completely falls down. Experiencing the same pain here.
Model < CouchRest::Model::Base
disable_dirty true
end
the comparisons in dirty are buggy, casted arrays and hashes do not correctly compare.
if you modify a deep hash/array it doesn't recognise the changes, ive been trying to figure out why.
there is a method to force couchrest into thinking a field has changed. just call it on your model instance like so...
Hi,
Is there a way to disable the dirty tracking functionality? This has been causing a lot of problems for us where documents with nested data structures aren't being saved because it doesn't think the attribute has changed, and rather than use the couchrest_attribute_will_change! method every time we need to save, we'd like to blanket turn off the functionality as we don't use it anyway.
Is that possible?
The text was updated successfully, but these errors were encountered: