We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db1eb4c commit 50d06eeCopy full SHA for 50d06ee
lib/mongoid/attributes.rb
@@ -372,7 +372,7 @@ def lookup_attribute_presence(name, value)
372
# not implement `#==` in a way that is compatible with `BigDecimal`.
373
def normalize_value(value)
374
if value.is_a?(BSON::Decimal128)
375
- # BSON::Decimal128#to_d was introduced in driver version 5.0.0
+ # BSON::Decimal128#to_d was introduced in bson-ruby version 5.0.0
376
value.respond_to?(:to_d) ? value.to_d : BigDecimal(value.to_s)
377
else
378
value
0 commit comments