- Adding the :autosave => true option to a references_many or references_one relation will now tell Mongoid to automatically save that association when the parent is first created. This will not happen on subsequent updates. Defaults to false.
embedded or not, to an object in another collection or database that does not reference the document back.
…od ruby-debug with the good ruby version
…except in many-to-many and polymorphic situations
…rce a save on the inverse
… one-to-one relations
…an explicit set of the relation
For example: Address.create(addressable: person)
to prevent excessive binding of relations when they were being validated. Also cleaned up continuation code to ensure reloading was not happening of the documents accidentally.
…trying to validate both sides
a new way of doing things, courtesy of Master Yoda. "Do or do not, there is no try" --Yoda
around setting inverse relations caused me to change the binding behaviour to be explicit: As a relation you set your self, set your inverse, and then stop every single time no matter what.
…ociations umm-kay. :)