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

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
爱范儿
爱范儿
博客园_首页
博客园 - 【当耐特】
V
Visual Studio Blog
博客园 - 叶小钗
月光博客
月光博客
美团技术团队
J
Java Code Geeks
小众软件
小众软件
Y
Y Combinator Blog
博客园 - Franky
Martin Fowler
Martin Fowler
博客园 - 聂微东
Microsoft Azure Blog
Microsoft Azure Blog
IT之家
IT之家
MyScale Blog
MyScale Blog
人人都是产品经理
人人都是产品经理
Microsoft Security Blog
Microsoft Security Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
阮一峰的网络日志
阮一峰的网络日志
酷 壳 – CoolShell
酷 壳 – CoolShell
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
云风的 BLOG
云风的 BLOG

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
Revert Active Model's Normalization and Cache Store gets ...
David Heinemeier Hansson · 2024-12-21 · via Ruby on Rails: Compress the complexity of modern web apps

Hi, it’s zzak. Let’s explore this week’s changes in the Rails codebase.

Fix “#to_query” to not include setter for nil values
To keep the behavior consistent with Rack::Utils.parse_nested_query.

# Before
nil.to_query("key") #=> key=
# After
nil.to_query("key") #=> key

Raise “ActiveRecordError” when “#increment!” called on new records
Similar to the behavior of #update_columns, an exception will be raised on records that haven’t been saved yet or were destroyed.

Revert “ActiveModel::Attributes::Normalization”
In the last episode, we announced that ActiveRecord::Normalization was moved to Active Model.
That PR was reverted because the API wasn’t ready and is still being worked on.

Add “:comparable” option to serialized attributes
This option was added to ease migration between different coders.
Refer to the API docs for more information.

Remove monkey patches of “Range#each” and “Range#step”
Technically these methods are equivalent to the native Ruby methods, so they can be safely removed.

Add “check_collisions” option to Cache Store
This new options was added for situations where guaranteeing uniqueness of the session ID is required.

Prevent Active Storage Blob from autosaving Attachments
This change should have no impact on existing applications, but will ensure that adding an attachment to a record doesn’t automatically save it, causing other callbacks to run unexpectedly.

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

Until next time!

Subscribe to get these updates mailed to you.