Skip to content

Conversation

@jamis
Copy link
Contributor

@jamis jamis commented Mar 11, 2025

Backport to 8.1-stable:

Because ActiveModel's validate_numericality_of validator looks at the value of a field before it was typecast, it fails when the underlying type is a BSON::Decimal128 (which is not a true numeric type). This PR specializes ActiveModel's NumericalityValidator so that it recognizes BSON::Decimal128 as a numeric type.

…godb#5961)

* RUBY-5843 Ensure BSON::Decimal128 is considered to be numeric

* bump drivers-evergreen-tools

* let's see how this version of drivers-evergreen-tools does

* Revert "let's see how this version of drivers-evergreen-tools does"

This reverts commit 243fc49.

* don't try to run `rails new` on rails < 7.1

concurrent-ruby gem removed a dependency on logger, which
rails assumed was there. Installing those versions of Rails
will install a too-new version of concurrent-ruby, which causes
`rails new` to fail because it can't resolve Logger.
@GCorbel
Copy link

GCorbel commented Mar 11, 2025

I confirm this works with Rails 7.0 and Mongoid 8.1

@jamis jamis requested a review from comandeo-mongo March 12, 2025 20:48
@jamis jamis merged commit 1f975dd into mongodb:8.1-stable Mar 13, 2025
53 of 58 checks passed
@jamis jamis deleted the mongoid-5843-bp81 branch March 13, 2025 16:51
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