Hi, it’s Wojtek. Let’s dig into this week’s changes and announcements.
Amanda Perino as new executive director for The Rails Foundation
Please welcome Amanda to the job of leading the mission to improve the documentation, education, marketing, and events in the Rails ecosystem.
Add ActiveJob.perform_all_later to enqueue multiple jobs at once
This adds the ability to bulk enqueue jobs, without running callbacks. This can greatly reduce the number of round-trips to the queue datastore. For queue adapters that do not implement the new
enqueue_all method, we fall back to enqueuing jobs individually.
Allow to define the default column serializer
YAML has quite a bit of footguns, as such it’s desirable to be able to substitute it for something else or even simply to force users to define a serializer explicitly for every serialized columns. The follow-up pull request drops the default for new applications.
Allow mailer classes to customize the deliver_later queue name
deliver_later_queue_name was already configurable on
ActionMailer::Base, however the value was inherited by all the mailer subclasses. From now on it can be customized per single mailer.
Allow 3-tier shared config in database.yml
Previously, the shared config hash would be merged with all database configurations defined in database.yml.
Add config.hosts and config.host_authorization to new app templates
Rails has a default “/up” endpoint to help load balancers and uptime monitors. DNS rebindings sometimes get in the way of it. Suggesting settings for both
host_authorization helps to reduce this friction.
Remove Copyright years
They are not serving any real purpose so no need to update it every year from now on.
Add “Rails Application Templates” to guides index
Still needs some final polishing, but can already be accessed on Edge Guides Page
You can view the whole list of changes here.
We had 25 contributors to the Rails codebase this past week!
Until next time!
Subscribe to get these updates mailed to you.