1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix documentation for number_with_precision helper in AV guide [ci skip]

- It accepts `precision` option, not `number_with_precision`.
This commit is contained in:
Prathamesh Sonpatki 2016-07-06 10:45:09 +05:30
parent 5324665e9f
commit 32426cec27
No known key found for this signature in database
GPG key ID: 8B90F6B89E2BCB71

View file

@ -1439,7 +1439,7 @@ Formats a number with the specified level of `precision`, which defaults to 3.
```ruby
number_with_precision(111.2345) # => 111.235
number_with_precision(111.2345, number_with_precision: 2) # => 111.23
number_with_precision(111.2345, precision: 2) # => 111.23
```
### SanitizeHelper