Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document raise_error_on_money_parsing #677

Merged
merged 2 commits into from
Mar 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading