Skip to content

Conversation

jamis
Copy link
Contributor

@jamis jamis commented Mar 11, 2025

Backport to 9.0-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.
@jamis jamis merged commit 437501d into mongodb:9.0-stable Mar 11, 2025
67 checks passed
@jamis jamis deleted the mongoid-5843-bp90 branch March 11, 2025 16:48
@jamis jamis added the bug Fixes a bug, with no new features or broken compatibility label Apr 11, 2025
@jamis jamis mentioned this pull request Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes a bug, with no new features or broken compatibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants