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

推荐订阅源

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
Rails on Docker, local? environment inquirer and more!
David Heinemeier Hansson · 2022-12-23 · via Ruby on Rails: Compress the complexity of modern web apps

Friday, December 23, 2022
Posted by gregmolnar

Hi there, this is Greg, bringing you the latest changes in Rails!

Only include all_queries default scopes on reload This pull request changes the current behaviour on reload, which applies all the default scopes, if any are marked as all_queries: true. The correct behaviour is to only apply all_queries: true default scopes on reload.

Allow assets:precompile to be run in a production build step without passing in RAILS_MASTER_KEY When compiling assets in production as part of an image build step, it’s inconvenient to have to pass in the real RAILS_MASTER_KEY. So allow passing in a dummy secret_key_base, just like we do in development and test, via ENV[“SECRET_KEY_BASE_DUMMY”] = 1. This will not give access to any of the real credentials or message verifiers, but allow the build step to complete, since it typically does not need it anyway.

Avoid unnecessary replacements in action text when the replacement node is unchanged This is a performance improvement for the case where the replacement logic is based on some condition, and it returns the same unchanged node. And example and a benchmark can be found on the pull request.

Docked Rails CLI Setting up Rails for the first time with all the dependencies necessary can be daunting for beginners. Docked Rails CLI uses a Docker image to make it much easier, requiring only Docker to be installed. 

Add default Dockerfiles This pull request adds Docker files by default to new apps: Dockerfile, .dockerignore, bin/docker-entrypoint. These files can be skipped with –skip-docker. They’re intended as a starting point for a production deploy of the application. Not intended for development (use the above mentioned Docked Rails for that). You can see more details about using it on the pull request.

Add Message{Encryptors,Verifiers}#transitional

This commit adds a transitional attribute to ActiveSupport::MessageEncryptors and ActiveSupport::MessageVerifiers. Setting it to true will swap the first two rotations when building a message encryptor/verifier. 

This can be useful when performing a rolling deploy of an application, wherein servers that have not yet been updated must still be able to verify messages from updated servers. 

Add Rails.env.local? This pull requests adds a shorthand for Rails.env.development? || Rails.env.test?.

Add support for pattern argument to ActiveRecord::Relation#none?/#any?/#one? The Enumerable versions of the #none?, #any?, and #one? predicate methods each take an optional pattern argument instead of a block, but the ActiveRecord::Relation versions didn’t before this change.

23 people contributed to Rails this past week! Merry Christmas and see you next week with our yearly special

Subscribe to get these updates mailed to you.