From 604b7de3c2a3973095ea472bb0c9dd26f92c12cb Mon Sep 17 00:00:00 2001 From: Graham Rogers Date: Wed, 23 Aug 2023 13:52:51 +0100 Subject: [PATCH] Document raise_error_on_money_parsing --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 75f549cfc..cb1b78798 100644 --- a/README.md +++ b/README.md @@ -474,6 +474,12 @@ MoneyRails.configure do |config| # symbol: nil, # sign_before_symbol: nil # } + + # Set whether an error should be raised when parsing money values + # This includes assigning to a monetized field with the wrong currency + # Default value is false + # + # config.raise_error_on_money_parsing = true end ``` @@ -493,6 +499,7 @@ end * `amount_column`: Provide values for the amount column (holding the fractional part of a money object). * `currency_column`: Provide default values or even disable (`present: false`) the currency column. * `rounding_mode`: Set `Money.rounding_mode` to one of the BigDecimal constants. +* `raise_error_on_money_parsing`: Set whether errors should be raised when parsing money values ### Helpers