Skip to content

Commit 50d06ee

Browse files
Update comment for BSON::Decimal128 to reflect version change
1 parent db1eb4c commit 50d06ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mongoid/attributes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def lookup_attribute_presence(name, value)
372372
# not implement `#==` in a way that is compatible with `BigDecimal`.
373373
def normalize_value(value)
374374
if value.is_a?(BSON::Decimal128)
375-
# BSON::Decimal128#to_d was introduced in driver version 5.0.0
375+
# BSON::Decimal128#to_d was introduced in bson-ruby version 5.0.0
376376
value.respond_to?(:to_d) ? value.to_d : BigDecimal(value.to_s)
377377
else
378378
value

0 commit comments

Comments
 (0)