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
The to_alize destroy callbacks used to be a after_destroy
callback which failed when relations specified a :nullify
dependency - since mongoid would nullify all relations before
the destroy and the after_destroy callback would find no children
after the destroy op to sync.
Changed the callback to be triggered before the destroy op, except
in the case of a :restrict dependency where a before_destroy callback
would pre-maturely sync the child objects even though the destroy op
may never happen
0 commit comments