The Wire · Showcase
RAILS PATCHES NUMBER FORMATTING AND COMPARISON BUGS OVERNIGHT
By RepoJournal · Filed · About Rails
Three critical fixes landed in Rails core to stop InheritableOptions from crashing on equality checks and number_to_delimited from corrupting signed integers.
Rails merged a fix [1] for InheritableOptions#== that was violating Ruby's equality contract by raising NoMethodError when compared to non-Hash objects like strings or integers. That same violation was surfacing through implicit equality checks everywhere the class appeared, turning what should be a boolean into a crash. The team also landed a fix [2] for number_to_delimited corrupting numbers with leading signs, a formatter bug that would have broken any code stringifying currency or percentages with negative values. A third merge [3] corrected a URL fragment in the Active Record Migrations guide. These are the kind of silent failures that ship to production unnoticed until they don't: your test suite passes, your app boots, then a customer hits the right code path and everything stops. The migrations guide fix [4] is documentation only, but the other two are live bugs in widely-used Rails utilities.
Action items
- → Watch for the next Rails patch release containing fixes for InheritableOptions and number_to_delimited rails/rails [monitor]
- → Audit uses of number_to_delimited in your codebase for negative number handling rails/rails [plan]
- → Test any code that compares InheritableOptions objects directly rails/rails [plan]
References
- [1] Merge pull request #57621 from 55728/fix-inheritable-options-eq-non-hash rails/rails
- [2] Merge pull request #57620 from 55728/fix-number-to-delimited-negative rails/rails
- [3] Merge pull request #57624 from VladNegara/migrations-associations-url rails/rails
- [4] Fix URL fragment in migration guide rails/rails
FAQ
- What changed in Rails on June 8, 2026?
- Three critical fixes landed in Rails core to stop InheritableOptions from crashing on equality checks and number_to_delimited from corrupting signed integers.
- What should Rails teams do about it?
- Watch for the next Rails patch release containing fixes for InheritableOptions and number_to_delimited • Audit uses of number_to_delimited in your codebase for negative number handling • Test any code that compares InheritableOptions objects directly
- Which Rails repositories shipped on June 8, 2026?
- rails/rails