Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embed documents #81

Open
luckyraul opened this issue Jul 28, 2019 · 1 comment
Open

Embed documents #81

luckyraul opened this issue Jul 28, 2019 · 1 comment
Labels

Comments

@luckyraul
Copy link

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

@dblock dblock added the bug? label Oct 23, 2019
@amanfrinati
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants