Hi, it’s zzak. Hopefully everyone got their Rails World CFPs in on time! Let’s explore this week’s changes in the Rails codebase.
Allow allocated Active Records to lookup associations
Previously, the association cache isn’t setup on allocated record objects, so association lookups will crash.
Test frameworks like mocha use allocate to check for stubbable instance methods, which can trigger an association lookup.
ActiveRecord Signed ID with global Rails.application.message_verifiers
This change ensures a unified configuration for all message verifiers, making it easier to rotate secrets and upgrade signing algorithms.
See message_verifiers
for more details.
Allow enabling unencrypted data fallback at a per-attribute level
Previously the global configuration for support_unencrypted_data
could be overridden on a per-attribute bases to disable it, but not the other way around.
Fix “create_or_find_by” not rolling back a transaction
This change addresses an edge case when rolling back a transaction inside a nested transaction would be silently ignored.
Add support for filtering notes by tag in “/rails/info/notes”
When viewing the Rails notes browser, you can now filter by tag, like “FIXME,” “TODO,” and “OPTIMIZE”.
Fix “Enumerable#sole” for infinite collections
This PR optimizes the Enumerable#sole
method to handle infinite collections more efficiently.
You can view the whole list of changes here. We had 15 contributors to the Rails codebase this past week!
Until next time!
Subscribe to get these updates mailed to you.