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

Correct human file size examples [ci skip] #36309

Merged
merged 1 commit into from
May 20, 2019

Conversation

agraul
Copy link
Contributor

@agraul agraul commented May 20, 2019

Summary

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)

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)
@kamipo kamipo merged commit d246e2f into rails:master May 20, 2019
@kamipo
Copy link
Member

kamipo commented May 20, 2019

Thanks!

@c960657
Copy link
Contributor

c960657 commented Sep 1, 2020

Any chance this could be merge into the 6.x and 5.x branches also? This is just a documentation fix in line with the actual implementation on these branches (back in 4.x, both 1000- and 1024-based logic was supported).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants