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 ADDS SAFER DATE FORMATTING AND PARAMETER TRANSFORMATIONS

By RepoJournal · Filed · About Rails

Rails is shipping new APIs for custom date formats and deep parameter transformations, giving you guardrails where before there were none.

Two major quality-of-life improvements landed in rails/rails overnight. First, `ActiveSupport::TimeFormats` and `ActiveSupport::DateFormats` [1] let you register custom date formats without mutating global constants, keeping your date handling clean and testable. Second, `ActionController::Parameters#deep_transform_values` [2] solves a real pain point: you can now normalize nested params (strip whitespace, cast values) while preserving Rails' strong-parameters safety checks. Until now, developers had to bail out to `params.to_unsafe_h.deep_transform_values`, which nuked the permitted/unpermitted distinction entirely. Over in rails/marcel, the file-type detection library just shipped v1.2.0 [3] with a critical fix: it no longer mutates the source IO stream during magic-byte detection, which means you can safely pass the same IO object around without side effects. The release also improves SVG and HTML detection, adds BOM CSV support, and introduces unicode string handling. These feel like minor wins until your production uploader breaks because something reused an IO object.

One email a day. Unsubscribe in one click.

Action items

References

  1. [1] Introduce `ActiveSupport::TimeFormats` and `ActiveSupport::DateFormats` for registering custom date formats ↗ rails/rails
  2. [2] Add ActionController::Parameters#deep_transform_values ↗ rails/rails
  3. [3] v1.2.0 ↗ rails/marcel

Quick answers

What shipped in Rails on May 21, 2026?
Rails is shipping new APIs for custom date formats and deep parameter transformations, giving you guardrails where before there were none. In total, 30 commits, 14 pull requests, and 2 releases landed.
Who contributed to Rails on May 21, 2026?
2 developers shipped this update, including paracycle and Edilbek.
What were the notable Rails updates?
Introduce `ActiveSupport::TimeFormats` and `ActiveSupport::DateFormats` for registering custom date formats, Add ActionController::Parameters#deep_transform_values, and v1.2.0.

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?