We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Doing this:
u = User.new p = Payment.embed p.date = Time.now p.amount = 5.00 u.payment = p
...results in a Payment collection being made and the Payment record going into it, where it will hang around as a duplicate of the one the User has.
This is not right, and it's what the .embed method was supposed to be for. Make sure initializing with that method never saves anything to the DB.
.embed
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Doing this:
...results in a Payment collection being made and the Payment record going into it, where it will hang around as a duplicate of the one the User has.
This is not right, and it's what the
.embed
method was supposed to be for. Make sure initializing with that method never saves anything to the DB.The text was updated successfully, but these errors were encountered: