mongoid-locker icon indicating copy to clipboard operation
mongoid-locker copied to clipboard

Embed documents

Open luckyraul opened this issue 6 years ago • 1 comments

I am trying to use your project with Embed documents

If I update embed document inside parent with with_lock it is not updated while saving parent Parent embeds_many children. I take first of array and modify it with parent option

#self.with_lock do
child.status = 2
parent.option = 4
parent.save!
#end

I works with comment, but does not work without

luckyraul avatar Jul 28 '19 19:07 luckyraul

@luckyraul could you add the models of parent and child?

amanfrinati avatar Mar 06 '23 22:03 amanfrinati