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

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
爱范儿
爱范儿
博客园_首页
博客园 - 【当耐特】
V
Visual Studio Blog
博客园 - 叶小钗
月光博客
月光博客
美团技术团队
J
Java Code Geeks
小众软件
小众软件
Y
Y Combinator Blog
博客园 - Franky
Martin Fowler
Martin Fowler
博客园 - 聂微东
Microsoft Azure Blog
Microsoft Azure Blog
IT之家
IT之家
MyScale Blog
MyScale Blog
人人都是产品经理
人人都是产品经理
Microsoft Security Blog
Microsoft Security Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
阮一峰的网络日志
阮一峰的网络日志
酷 壳 – CoolShell
酷 壳 – CoolShell
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
云风的 BLOG
云风的 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
A class method to introspect delegated types, schema_dump...
David Heinemeier Hansson · 2024-01-19 · via Ruby on Rails: Compress the complexity of modern web apps

Friday, January 19, 2024
Posted by Emmanuel Hayford

As the morning sun casts its gentle glow, I find myself aboard a train bound for Szklarska Poręba. I’m literally on Rails! I thought, what better setting to share the latest updates on Rails than while traversing these literal rails?

Define a class method to introspect valid delegatable types This PR introduces a <role>_types class method within ActiveRecord::DelegatedType to enable introspection of delegated types.

Make schema_dump, query_cache, replica & database_tasks configurable via DATABASE_URL Enable configurability for schema_dump, query_cache, replica, and database_tasks via DATABASE_URL. Previously, this functionality faced limitations due to boolean values being incorrectly interpreted as strings. For example, DATABASE_URL=postgres://localhost/foo?schema_dump=false now properly disables dumping the schema cache.

Fix IPAddr prefix information missing when writing to the cache This PR incorporates the IPAddr#prefix into the serialization process of an IPAddr when utilizing the ActiveSupport::MessagePack serializer. This modification ensures both backward and forward compatibility; existing payloads remain readable, and newer payloads are compatible with earlier versions of Rails.

Ensure only directories exist in Rails default load paths Safeguard Rails default load paths by enforcing the presence of only directories. In the past, certain files within the app directory caused contamination in the load paths. This commit rectifies the issue by eliminating files from the default load paths established by the Rails framework. As a result, only directories are now considered in the default settings for the following paths:

  • autoload_paths
  • autoload_once_paths
  • eager_load_paths
  • load_paths

We had 33 contributors to the Rails codebase this past week! Have a look here for an exhaustive list of all changes.

Take care, Emmanuel Hayford

Your weekly inside scoop of interesting commits, pull requests and more from Rails.

Subscribe to get these updates mailed to you.