We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
subunit_numericality
1 parent 72c3773 commit 4b9aae0Copy full SHA for 4b9aae0
README.md
@@ -189,6 +189,17 @@ to the validation you are willing to skip, like this:
189
monetize :price_in_a_range_cents, numericality: false
190
```
191
192
+And you can also use `subunit_numericality` for subunit:
193
+
194
+```ruby
195
+monetize :price_in_a_range_cents,
196
+ allow_nil: true,
197
+ subunit_numericality: {
198
+ greater_than_or_equal_to: 0,
199
+ less_than_or_equal_to: 100_00
200
+ }
201
+```
202
203
### Mongoid 2.x and 3.x
204
205
`Money` is available as a field type to supply during a field definition:
0 commit comments