From 10f5e5fb1c011b84610879eac62ae8edef16d002 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristia=CC=81n=20Pe=CC=81rez?= Date: Thu, 10 Jul 2025 21:39:25 -0300 Subject: [PATCH] fix: the default value of map_big_decimal_to_decimal128 is true, not false --- source/data-modeling/field-types.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/data-modeling/field-types.txt b/source/data-modeling/field-types.txt index 5967162..a8aae19 100644 --- a/source/data-modeling/field-types.txt +++ b/source/data-modeling/field-types.txt @@ -313,9 +313,9 @@ You can use the ``BigDecimal`` type to store numbers with increased precision. {+odm+} stores ``BigDecimal`` values in two different ways, depending on the value you set for the ``Mongoid.map_big_decimal_to_decimal128`` configuration property: -- If set to ``true``, {+odm+} stores ``BigDecimal`` values as BSON ``Decimal128`` +- If set to ``true`` (default), {+odm+} stores ``BigDecimal`` values as BSON ``Decimal128`` values. -- If set to ``false`` (default), {+odm+} stores ``BigDecimal`` values as strings. +- If set to ``false``, {+odm+} stores ``BigDecimal`` values as strings. Consider the following limitations when setting the ``Mongoid.map_big_decimal_to_decimal128`` option to ``true``: