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?
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.
looking at the source this might work
Model < CouchRest::Model::Base
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...
I dont know how supported this is and may change in future versions.