Skip to content

Commit

Permalink
Merge pull request #677 from TastyPi/raise_error_on_money_parsing
Browse files Browse the repository at this point in the history
Document raise_error_on_money_parsing
  • Loading branch information
semmons99 authored Mar 13, 2024
2 parents 2d925d8 + 302b685 commit 7192ce1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand All @@ -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

Expand Down

0 comments on commit 7192ce1

Please sign in to comment.