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

MONGOID-5818 Support Rails 8 #5876

Merged
merged 5 commits into from
Nov 8, 2024

Conversation

comandeo-mongo
Copy link
Contributor

No description provided.

@comandeo-mongo comandeo-mongo requested a review from jamis November 7, 2024 16:19
@comandeo-mongo comandeo-mongo marked this pull request as ready for review November 7, 2024 16:19
Copy link
Contributor

@jamis jamis left a 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?
Copy link
Contributor

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 :)

@AlexKovynev
Copy link
Contributor

8.0 released if so :)

@comandeo-mongo
Copy link
Contributor Author

8.0 released if so :)

Oh cool, glad that we unblocked Rails team for the GA release! 😂

@comandeo-mongo comandeo-mongo merged commit 3cf6a4e into mongodb:master Nov 8, 2024
66 of 67 checks passed
@comandeo-mongo comandeo-mongo deleted the 5818-rails-8 branch November 8, 2024 08:26
comandeo-mongo added a commit to comandeo-mongo/mongoid that referenced this pull request Nov 8, 2024
comandeo-mongo added a commit that referenced this pull request Nov 8, 2024
comandeo-mongo added a commit to comandeo-mongo/mongoid that referenced this pull request Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants