Skip to content

Commit c2d67b4

Browse files
MONGOID-5507 - Fix two bugs in BigDecimal mongoization (#5485)
* Fix two bugs in BigDecimal mongoization 1. demongoize - has redundant elsif object.numeric? 2. mongoize - missing to_s in return condition when map_big_decimal_to_decimal128 is false * Remove obsolete comment * Update big_decimal.rb * Fix spec * MONGOID-5507 add release notes and minor changes Co-authored-by: shields <[email protected]> Co-authored-by: Neil Shweky <[email protected]>
1 parent 82f29a2 commit c2d67b4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

source/release-notes/mongoid-9.0.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,14 @@ Mongoid 9.0 flips the default of this flag from ``true`` => ``false``.
120120

121121
This means that, by default, Mongoid 9 will update the existing document and
122122
will not replace it.
123+
124+
125+
Bug Fixes and Improvements
126+
--------------------------
127+
128+
This section will be for smaller bug fixes and improvements:
129+
130+
- With the ``map_big_decimal_to_decimal128`` flag set to false, ``demongoizing``
131+
a non-numeric, non-string value that implements ``:to_d`` will return a string
132+
rather than a ``BigDecimal``
133+
`MONGOID-5507 <https://jira.mongodb.org/browse/MONGOID-5507>`_.

0 commit comments

Comments
 (0)