Skip to content

Commit 7192ce1

Browse files
authored
Merge pull request #677 from TastyPi/raise_error_on_money_parsing
Document raise_error_on_money_parsing
2 parents 2d925d8 + 302b685 commit 7192ce1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,12 @@ MoneyRails.configure do |config|
474474
# symbol: nil,
475475
# sign_before_symbol: nil
476476
# }
477+
478+
# Set whether an error should be raised when parsing money values
479+
# This includes assigning to a monetized field with the wrong currency
480+
# Default value is false
481+
#
482+
# config.raise_error_on_money_parsing = true
477483
end
478484
```
479485

@@ -493,6 +499,7 @@ end
493499
* `amount_column`: Provide values for the amount column (holding the fractional part of a money object).
494500
* `currency_column`: Provide default values or even disable (`present: false`) the currency column.
495501
* `rounding_mode`: Set `Money.rounding_mode` to one of the BigDecimal constants.
502+
* `raise_error_on_money_parsing`: Set whether errors should be raised when parsing money values
496503

497504
### Helpers
498505

0 commit comments

Comments
 (0)