aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorAlexander Graul <agraul@suse.com>2019-05-20 17:58:35 +0200
committerAlexander Graul <agraul@suse.com>2019-05-20 18:25:11 +0200
commit2256f0bdb09a39a8752183e3422b76e1cd05df1a (patch)
tree5e1011c3fb28aa40de9c014a75942ba4fa5d0a66 /actionview
parentbbd065204ed45071f048badb7c0d49e35773d788 (diff)
downloadrails-2256f0bdb09a39a8752183e3422b76e1cd05df1a.tar.gz
rails-2256f0bdb09a39a8752183e3422b76e1cd05df1a.tar.bz2
rails-2256f0bdb09a39a8752183e3422b76e1cd05df1a.zip
Correct human file size examples [ci skip]
The `number_to_human_size` helpers in Action View and Active Support calculate the "human size" with a base of 1024. The examples should reflect that so they don't confuse the reader. The updated documentations use the values from: helper.number_to_human_size(1500)
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/helpers/number_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/number_helper.rb b/actionview/lib/action_view/helpers/number_helper.rb
index 35206b7e48..03ec7df9c1 100644
--- a/actionview/lib/action_view/helpers/number_helper.rb
+++ b/actionview/lib/action_view/helpers/number_helper.rb
@@ -251,7 +251,7 @@ module ActionView
end
# Formats the bytes in +number+ into a more understandable
- # representation (e.g., giving it 1500 yields 1.5 KB). This
+ # representation (e.g., giving it 1500 yields 1.46 KB). This
# method is useful for reporting file sizes to users. You can
# customize the format in the +options+ hash.
#