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

推荐订阅源

aimingoo的专栏
aimingoo的专栏
Y
Y Combinator Blog
云风的 BLOG
云风的 BLOG
Microsoft Azure Blog
Microsoft Azure Blog
腾讯CDC
T
The Blog of Author Tim Ferriss
P
Proofpoint News Feed
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
小众软件
小众软件
美团技术团队
Martin Fowler
Martin Fowler
爱范儿
爱范儿
有赞技术团队
有赞技术团队
博客园 - 【当耐特】
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Microsoft Security Blog
Microsoft Security Blog
宝玉的分享
宝玉的分享
J
Java Code Geeks
B
Blog
V
V2EX
Stack Overflow Blog
Stack Overflow Blog
B
Blog RSS Feed
博客园 - Franky

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
Deprecating Associations, Cleaner Backtraces, and Smarter...
David Heinemeier Hansson · 2025-07-04 · via Ruby on Rails: Compress the complexity of modern web apps

Friday, July 4, 2025
Posted by Emmanuel Hayford

Hi! Emmanuel Hayford with some cool updates for you.

Deprecated associations
You can now mark associations as deprecated using:

has_many :posts, deprecated: true

Active Record will report any usage of the deprecated association. Three reporting modes are supported: :warn (default), :raise, and :notify. You can also enable or disable backtraces (disabled by default).

Add locale options to PostgreSQL adapter DB create
PostgreSQL adapter create DB now supports locale_provider and locale.

Fix annotate comments to propagate to update_all/delete_all
This PR fixes annotate comments to work with update_all and delete_all.

Rails New: Only add browser restrictions when using importmap
When you generate a new Rails application right now, it will block older browsers. This behavior makes sense if you are using importmap-rails, but if you for example use jsbundling-rails, it does not. This PR suggests only adding this blocker when you are using importmap, and not for all Rails applications.

Implement ActiveSupport::BacktraceCleaner#clean_locations
A new method ActiveSupport::BacktraceCleaner#clean_locations allows cleaning an array of Thread::Backtrace::Location objects:

clean_locations = backtrace_cleaner.clean_locations(caller_locations)

Filters and silencers still receive string representations, while the returned array retains the original path attributes, since Location objects are immutable.

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

Until next time!

Subscribe to get these updates mailed to you.