…important bug fixes.
Now the child documents are not recreated if the array being set already contains mongoid documents. That way document state such as new_record? or changed? can be preserved.
This reverts commit 0d0398f.
Now we don't recreate the child documents if the array being set already contains mongoid documents. That way we can preserve the document state such as new_record? or changed?.
… the setters
…ets a dirty change to clear out the array
When 10 or more documents were embedded the _pull method in the path module would generate bad paths and .destroy would fail.
… This is due to an issue in bson which we didn't spot earlier, which means it won't accept instances of ActiveSupport::TimeWithZone. With that being the case, it is difficult to support any other time zones than local and UTC. If and when bson starts supporting instances of ActiveSupport::TimeWithZone please revert this commit to bring back support for any time zone.