-
Notifications
You must be signed in to change notification settings - Fork 176
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
Upgrade Mongoid to version 9.0.0 #245
Conversation
@@ -6,7 +6,7 @@ class Profile | |||
field :age | |||
field :hobbies, type: Array, default: [] | |||
|
|||
embedded_in :user, inverse_of: :profile | |||
embedded_in :user, inverse_of: :profile, touch: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Embedded associations now have the touch option defaulted to true
: https://www.mongodb.com/docs/mongoid/master/release-notes/mongoid-9.0/#embedded_in-associations-now-default-to-touch--true
Ready for review. |
Generated by 🚫 Danger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dblock - I appreciate the review. Please check out the latest revisions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more nit, apologies for my OCD, looking good.
No worries. Thanks for being thorough. I pushed an update. This is unrelated but any chance that you or the other maintainers can look at my other PR: #246? I will likely need to rebase this. |
@@ -1,7 +1,8 @@ | |||
### 4.1.1 (Next) | |||
### 4.2.0 (Next) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/mongoid/mongoid-rspec/blob/master/lib/mongoid/rspec/version.rb also needs to be incremented. Can be done in your next PR.
Yes, I was doing this one first. Rebase and I'll take a look. |
This PR upgrades mongoid to version 9.0.0