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

推荐订阅源

MongoDB | Blog
MongoDB | Blog
B
Blog RSS Feed
MyScale Blog
MyScale Blog
M
MIT News - Artificial intelligence
H
Hackread – Cybersecurity News, Data Breaches, AI and More
J
Java Code Geeks
U
Unit 42
Blog — PlanetScale
Blog — PlanetScale
L
LangChain Blog
C
Check Point Blog
WordPress大学
WordPress大学
Last Week in AI
Last Week in AI
人人都是产品经理
人人都是产品经理
T
Tailwind CSS Blog
Vercel News
Vercel News
腾讯CDC
GbyAI
GbyAI
有赞技术团队
有赞技术团队
S
SegmentFault 最新的问题
H
Help Net Security
博客园 - 三生石上(FineUI控件)
D
DataBreaches.Net
Microsoft Security Blog
Microsoft Security 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.