RepoJournal
Rails

@rails

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

Keep up with Rails in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

One email a day. Unsubscribe in one click.

Pick a date

Topics: Ruby Full archive →

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.

One email a day. Unsubscribe in one click.

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

Quick answers

What shipped 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. In total, 11 commits and 7 pull requests landed.
Who contributed to Rails on June 28, 2026?
1 developer shipped this update, including vipulnsward.
What were the notable Rails updates?
Fix `number_to_human`/`number_to_human_size` crashing on `precision: nil`, Fix incorrect RDoc examples across frameworks [ci skip], and Merge pull request #57895 from 55728/fix-invert-add-foreign-key-if-not-exists.

More from @rails

Daily updates, in your inbox

Follow Rails

Keep up with Rails in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

or

One email a day. Unsubscribe in one click. Read a past issue →

Elsewhere on the wire

Want every project, not just this one?

We use privacy-friendly analytics (Google Analytics, IP-anonymized) to see which pages help readers. No ads, and we never sell your data. See our Privacy Policy.