The Wire · Showcase
RAILS FIXES NUMBER HELPERS CRASH, DOCUMENTATION SWEEP LANDS
By RepoJournal · Filed · About Rails
Rails patched a critical bug in number_to_human and number_to_human_size that crashes when precision is nil, while simultaneously correcting dozens of misleading RDoc examples across the framework.
The number helpers crash [1] affected any code passing precision: nil to number_to_human or number_to_human_size, which should be valid since other number helpers accept it. The fix adds a nil guard that was missing in RoundingHelper#absolute_precision. Meanwhile, a comprehensive RDoc sweep [2] corrected malformed examples across Active Model, including wrong method signatures and timestamps formatted with 133 milliseconds instead of 13. The migrations desk also shipped a reversibility fix [3] making add_foreign_key(if_not_exists: true) properly invertible in rollbacks. This Week in Rails [4] went live covering RFC 9110 Accept header work, dotenv fixes, and composite key improvements. All three patches are comment-only or low-risk logic fixes that are safe to ship immediately.
Action items
- → Pull latest rails/rails main - the number_to_human fix resolves a runtime crash rails/rails [immediate]
- → Review RDoc corrections if you maintain documentation generation pipelines rails/rails [plan]
- → Monitor This Week in Rails for RFC 9110 Accept header migration path rails/website [monitor]
References
- [1] Fix `number_to_human`/`number_to_human_size` crashing on `precision: nil` rails/rails
- [2] Fix incorrect RDoc examples across frameworks [ci skip] rails/rails
- [3] Merge pull request #57895 from 55728/fix-invert-add-foreign-key-if-not-exists rails/rails
- [4] Add This Week in Rails for June 26, 2026 ↗ rails/website
FAQ
- What changed in Rails on June 28, 2026?
- Rails patched a critical bug in number_to_human and number_to_human_size that crashes when precision is nil, while simultaneously correcting dozens of misleading RDoc examples across the framework.
- What should Rails teams do about it?
- Pull latest rails/rails main - the number_to_human fix resolves a runtime crash • Review RDoc corrections if you maintain documentation generation pipelines • Monitor This Week in Rails for RFC 9110 Accept header migration path
- Which Rails repositories shipped on June 28, 2026?
- rails/rails, rails/website