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
For example I have the following toy model:
class Toy include Mongoid::Document include Mongoid::OptimisticLocking belongs_to :owner, class_name: 'User' validates_presence_of :owner end
Then even the following code would fail (in rails console)
> a = Toy.create owner: User.first (reload console) > Toy.first.save Mongoid::Errors::StaleDocument: Attempted to update a stale document: Toy
The text was updated successfully, but these errors were encountered:
This should be closed by #14
Sorry, something went wrong.
New version 0.0.4 published to Rubygems. Thank you @tomglue
No branches or pull requests
For example I have the following toy model:
Then even the following code would fail (in rails console)
The text was updated successfully, but these errors were encountered: