-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
MONGOID-5818 Support Rails 8 #5876
Conversation
4f1e49c
to
83a7e00
Compare
83a7e00
to
2aabbc2
Compare
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.
LGTM! That's actually fewer changes than I expected, after hearing what you'd run into earlier this week. Great work finding a way around those class_attribute
changes!
@@ -119,7 +123,7 @@ class << self | |||
# an existing field. | |||
# This condition also checks if the class has any descendants, because | |||
# if it doesn't then it doesn't need a discriminator key. | |||
return unless !fields.key?(discriminator_key) && !descendants.empty? | |||
return if fields.key?(discriminator_key) || descendants.empty? |
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.
💪 Love to see De Morgan's laws in action :)
8.0 released if so :) |
Oh cool, glad that we unblocked Rails team for the GA release! 😂 |
No description provided.