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

推荐订阅源

博客园_首页
IT之家
IT之家
博客园 - Franky
Stack Overflow Blog
Stack Overflow Blog
宝玉的分享
宝玉的分享
Recent Announcements
Recent Announcements
Engineering at Meta
Engineering at Meta
S
SegmentFault 最新的问题
V
Visual Studio Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Last Week in AI
Last Week in AI
H
Help Net Security
V
V2EX
H
Hackread – Cybersecurity News, Data Breaches, AI and More
量子位
博客园 - 叶小钗
J
Java Code Geeks
博客园 - 【当耐特】
月光博客
月光博客
爱范儿
爱范儿
人人都是产品经理
人人都是产品经理
酷 壳 – CoolShell
酷 壳 – CoolShell
小众软件
小众软件

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
Active Record Encryption, several performance optimizatio...
David Heinemeier Hansson · 2021-05-28 · via Ruby on Rails: Compress the complexity of modern web apps

Hi, zzak here! お久しぶりです! This time I will be recapping the past month or so of Rails. Hang on! There’s a ton of stuff to catch up on!!

Active Record Encryption

Originally extracted from HEY, this feature adds encrypted attributes to Active Record models. You can find out more in the guide.

Optimize Cache::Entry coder

Active Support’s cache has received a significant speed bump that was well overdue.

Optimize Active Model generated attribute methods

This optimization should reduce memory overhead and speed up boot times.

7x speed up for ActiveRecord::Base.logger

By converting AR::Base.logger to a class_attribute we had significant performance gains.

Allow nesting locales for Engines

This opens up better organization for larger apps using i18n. e.g. config/locales/en/models.yml vs. config/locales/models.en.yml

Support Range objects in Active Job

This change adds an Active Job serializer for the Range object from Ruby.

Add Enumerable#sole to Active Support

Based on ActiveRecord::FinderMethods#sole, this method returns the sole item of the enumerable. If there are no items, or more than one item it will raise an exception.

Deprecate Enumerable#sum and Array#sum

Since Ruby 2.4 included these methods, Rails can start using the native versions for significant performance increase.

Improve Active Record performance for #one? and #many?

By limiting the generated count queries, this optimization provides significant performance increase for operations over many rows.

Log a warning when running SQLite in production

A warning is now emitted when trying to use SQLite in production, this can be disabled by setting config.active_record.sqlite3_production_warning to false.

Add disable_joins option to has_one relation

This solves a problem with has_one…through relationships whose tables are in separate database clusters.

Add support for require-trusted-types-for and trusted-types

This feature adds support for these two Content-Security-Policy headers which you can read more about over at MDN.

Remove and deprecate Rack::Runtime

Any apps depending on this middleware can still activate it manually, otherwise a deprecation warning will be sent and replaced with a fake.

Allow access to nested secrets in Rails.application.credentials

Now Rails.application.credentials.aws.access_key_id will return the same thing as Rails.application.credentials.aws[:access_key_id].

Add ActionController::Live#send_stream

Adds the ability to live stream binary data to the browser like send_data does for static files.

This allows you to stream blobs from cloud storage in any controller.

Add from: option to ActiveSupport::TestCase#assert_no_changes

This feature provides an optional keyword argument to assert_no_changes to specify the expected initial value.

61 people contributed to Rails this month. Check out the open issues to get involved and help out. Until next week!