惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 三生石上(FineUI控件)
U
Unit 42
人人都是产品经理
人人都是产品经理
罗磊的独立博客
Recent Announcements
Recent Announcements
云风的 BLOG
云风的 BLOG
aimingoo的专栏
aimingoo的专栏
T
Tailwind CSS Blog
GbyAI
GbyAI
Blog — PlanetScale
Blog — PlanetScale
I
InfoQ
Last Week in AI
Last Week in AI
宝玉的分享
宝玉的分享
B
Blog RSS Feed
WordPress大学
WordPress大学
腾讯CDC
H
Help Net Security
博客园 - Franky
博客园 - 【当耐特】
博客园 - 聂微东
Stack Overflow Blog
Stack Overflow Blog
B
Blog
Vercel News
Vercel News
博客园 - 司徒正美

Ruby on Rails: Compress the complexity of modern web apps

Safer to_i coercion, custom to_fs formats, and more! This Week in Rails: May 16, 2026 This Week in Rails: May 8, 2026 This Week in Rails: May 1, 2026 Active Record gets better every week Great big Rails World 2026 update: CFP, Corporate Support tickets, workshops Query command for database queries and more Explicit query: and body: kwargs for integration tests and more! Speedup ActiveRecord::LogSubscriber#sql_color and more! This Week in Rails: March 27, 2026 Rails Versions 8.0.5 and 8.1.3 have been released! Rails Versions 7.2.3.1, 8.0.4.1, and 8.1.2.1 have been released! This Week in Rails: March 20, 2026 Validate URI scheme in Action Text and more This Week in Rails: March 6, 2026 Planning Center is the newest Rails Foundation Contributing member Action Text gets Markdown conversion, editor links in devcontainers, and more! BARRA seeks Rails developer Joe Agliozzo is looking for a Rails developer The rise of lighttpd as the alternative web server When longer is better and more is more Snowdevil: First e-tailer on Rails Natural selection for frameworks in Ruby vs Java Address book tutorial in Portuguese Becoming a better programmer with Rails 10 Things Every Java Programmer Should Know About Ruby Really Getting Started in Rails Off the Treadmill, Onto the Rails Rails 0.9.5: A world of fixes and tweaks Rich clients with Rails and XUL
Error-aware retry_on, PostgreSQL type mappings, and more!
David Heinemeier Hansson · 2026-01-16 · via Ruby on Rails: Compress the complexity of modern web apps

Friday, January 16, 2026
Posted by Emmanuel Hayford

Hi, it’s Emmanuel Hayford. Here’s a look at the highlights from this week’s updates to the Rails codebase.

Allow retry_on wait procs to accept error as a second argument
This PR adds support for retry_on wait procs to optionally receive the error as a second argument, enabling dynamic retry strategies based on error properties.

class RemoteServiceJob < ActiveJob::Base
  retry_on CustomError, wait: ->(executions, error) { error.retry_after || executions * 2 }

  def perform
    # ...
  end
end

Procs with arity 0 or 1 continue to receive only the execution count, maintaining backwards compatibility.

Make CSRF header-only protection compatible with local installs using HTTP
This change allows requests with missing Sec-Fetch-Site headers if they happen over HTTP and the app is not configured to force SSL. The Origin check always happens in any case.

Remove X-XSS-Protection from default headers
The X-XSS-Protection header has been removed from the default headers as modern browsers no longer support it.

Deprecate protect_from_forgery without explicit strategy
When protect_from_forgery is called without arguments, it defaults to :null_session. However, when config.action_controller.default_protect_from_forgery is enabled, it uses :exception. This inconsistency is now deprecated to encourage explicit strategy declaration.

Wrap setting ActionController::Live config in load hook
This change wraps the ActionController::Live configuration setting in a load hook, ensuring proper initialization timing.

Add PostgreSQLAdapter.register_type_mapping
Gems adding types to PostgreSQL (like PostGIS or pgvector) previously had to monkey-patch the adapter. This PR adds a cleaner public interface for registering custom type mappings.

Override inspect in Combined, Env & Encrypted Configurations
Previously, inspecting configuration objects would expose all sensitive data including ENV variables and credentials. Now only key names are shown:

# Before
Rails.app.creds
#<ActiveSupport::CombinedConfiguration:0x... @configurations=[... "SOME_SECRET" => "secret_value" ...]>

# After
Rails.app.creds
#<ActiveSupport::CombinedConfiguration:0x... keys=[:rails_env, :some_secret, :secret_key_base]>

Memoize IAM client and set authorization to ADC for GCS Active Storage service
This PR restores the previous behaviour where Application Default Credentials (ADC) is used when iam: true is set, while avoiding excessive ADC calls by memoizing the client. Calls are only made at instantiation time and when credentials expire.

Make ActiveStorage::Service responsible for checksums
S3, GCS, and Azure all support file integrity checksums beyond MD5, which cannot be used in FIPS-compliant environments. This PR moves checksum calculation to the storage service class, enabling support for additional algorithms like SHA256 for the S3 service, including direct uploads.

Deprecate built-in ActiveJob backburner adapter
As part of the ongoing cleanup of legacy adapters from Active Job, the built-in Backburner adapter has been deprecated.

You can view the whole list of changes here. We had 36 contributors to the Rails codebase this past week!

Until next time!

Subscribe to get these updates mailed to you.