RepoJournal
Rails

@rails

Ruby on Rails — Shopify, Basecamp, GitHub all run on it

Pick a date

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

References

  1. [1] Fix `number_to_human`/`number_to_human_size` crashing on `precision: nil` rails/rails
  2. [2] Fix incorrect RDoc examples across frameworks [ci skip] rails/rails
  3. [3] Merge pull request #57895 from 55728/fix-invert-add-foreign-key-if-not-exists rails/rails
  4. [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

For your repos

The showcase is a teaser.
Your wire is the product.

Same engine. Different stack. Below: what changes when the wire is yours.

Showcase wire

  • 14 famous open source orgs
  • One wire per day
  • Public, generic
  • Read on the web, when you remember

Your wire

  • Up to 1,500 of your repos - orgs, deps, vendors
  • Morning and evening briefs
  • Action items routed to your team
  • Slack delivery, email, breaking-news CVE alerts

Want a hands-on demo first? Ask a current user for an invite link.