aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/json/encoding_test.rb
diff options
context:
space:
mode:
authorJack Xu <jackxxu@gmail.com>2013-08-28 23:46:53 -0500
committerJack Xu <jackxxu@gmail.com>2013-08-28 23:46:53 -0500
commit24a7e609437d9e6ea61140492461631c4d5bd665 (patch)
tree4eeca3b4a541801d7e9d674fbb34c999e6341100 /activesupport/test/json/encoding_test.rb
parent4934f19a7812b08a369c775c724410057daeb151 (diff)
downloadrails-24a7e609437d9e6ea61140492461631c4d5bd665.tar.gz
rails-24a7e609437d9e6ea61140492461631c4d5bd665.tar.bz2
rails-24a7e609437d9e6ea61140492461631c4d5bd665.zip
Enable number_to_percentage to keep the number's precision by allowing :precision to be nil
number_helper.number_to_percentage(1000, precision: nil) # => "1000%"
Diffstat (limited to 'activesupport/test/json/encoding_test.rb')
0 files changed, 0 insertions, 0 deletions