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

推荐订阅源

aimingoo的专栏
aimingoo的专栏
Jina AI
Jina AI
WordPress大学
WordPress大学
Recent Announcements
Recent Announcements
G
Google Developers Blog
I
InfoQ
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Google DeepMind News
Google DeepMind News
P
Proofpoint News Feed
MyScale Blog
MyScale Blog
M
MIT News - Artificial intelligence
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
C
Check Point Blog
J
Java Code Geeks
T
Tailwind CSS Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Microsoft Security Blog
Microsoft Security Blog
MongoDB | Blog
MongoDB | Blog
V
Visual Studio Blog
人人都是产品经理
人人都是产品经理
量子位
A
About on SuperTechFans
D
DataBreaches.Net
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

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.