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

推荐订阅源

N
Netflix TechBlog - Medium
I
InfoQ
Engineering at Meta
Engineering at Meta
Jina AI
Jina AI
Recent Announcements
Recent Announcements
T
The Blog of Author Tim Ferriss
P
Proofpoint News Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
D
Docker
Microsoft Security Blog
Microsoft Security Blog
宝玉的分享
宝玉的分享
Last Week in AI
Last Week in AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
GbyAI
GbyAI
博客园 - Franky
博客园 - 聂微东
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 叶小钗
酷 壳 – CoolShell
酷 壳 – CoolShell
B
Blog RSS Feed
WordPress大学
WordPress大学
MyScale Blog
MyScale 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
Global strict loading mode setting, route draw deferring ...
David Heinemeier Hansson · 2024-06-07 · via Ruby on Rails: Compress the complexity of modern web apps

Friday, June 7, 2024
Posted by Wojtek

Hi, Wojtek here. Let’s explore this week’s changes in the Rails codebase.

Rails security releases
Rails Versions 6.1.7.8, 7.0.8.4, 7.1.3.4, and 7.2.0.beta2 have been released with a security issue fix.

The CFP for RubyConf is open
Submissions on all Ruby Web Frameworks, including Rails, will be considered, so get your Rails related submissions ready!

Allow to set strict_loading_mode globally
Sets the mode via config.active_record.strict_loading_mode in which strict loading is reported. Defaults to :all. It can be changed to :n_plus_one_only to only report when loading associations that will lead to an “N + 1 query”. This can be set globally or within a model.

Defer route drawing to the first request, or when url_helpers called
Executes the first routes reload in middleware, or when a route set’s url_helpers receives a route call / asked if it responds to a route. Previously, this was executed unconditionally on boot, which slowed down boot time unnecessarily for larger apps with lots of routes.

Add an explicit dependency on the logger gem
It is a bundled gem candidate for Ruby 3.5, thus it would start to warn without it.

Re-roll deprecation of to_time_preserves_timezone
The previous deprecation hadn’t been warning for all users, so proceeding to removal could cause an un-warned change in behaviour.

Include the current transaction in sql.active_record event payloads
Use case is to allow tracing database activity including the ability to group queries by transaction, thanks to the recently added ActiveRecord::Transaction#uuid. Enhanced later with nil handling change

Fix IDs reader on preloaded associations for composite primary keys
Now calling an example association with composite primary keys author.books.ids works as expected.

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

Until next time!

Subscribe to get these updates mailed to you.