Friday, October 11, 2024

Lazy i18n watcher on boot and more

Posted by Wojtek

Hi, Wojtek here still feeling the good vibe of the Rails World. Cheers to all the attendees and see you in Amsterdam!

Fireside Chat with DHH, Matz and Tobi
The video from the Rails World is now ready to watch, followed by the Eileen keynote. All the videos will be available soon!

Don’t execute i18n watcher on boot
It shouldn’t catch any file changes initially which unnecessarily slowed down boot of applications with lots of translations.

Support method names for :block in browser blocking
Prior to this commit, :block options only supported callables. This commit aims to bring browser blocking closer in parity to callbacks declarations like before_action and after_action by supporting instance method names as well.

Add :except_on option for validations
Grants the ability to skip Active Model validations in specified contexts.

Update Rails error reporting guide
Change can be previewed on the edge version of the Rails Error Reporting guide.

Fix incorrect SQL query when passing an empty hash to model #insert
Fixes calling code like Post.insert({}) to not raise an error.

Allow to save records with polymorphic join tables that have inverse of specified
See the pull request for explained bug case that was fixed.

Fix incorrect joins for polymorphic “has many through” with association scope
Updates Active Record to not apply the previous reflection’s join scopes if it’s a through reflection, as the scope will eventually be built in the context of the polymorphic reflection.

You can view the whole list of changes here. We had 34 contributors to the Rails codebase this past week!

Until next time!

Subscribe to get these updates mailed to you.