"title"=>"Rails guides facelift, two new official gems and more!",
"summary"=>"Hey everyone, Happy Weekend! Vipul here with the latest updates for This Week in Rails. Let’s dive in.",
"content"=>"
Hey everyone, Happy Weekend!
\nVipul here with the latest updates for This Week in Rails. Let’s dive in.
Rails guides gets a facelift
\nRails guides has a received a big design update!
\nCheck out the Edge Guides to see these changes.\nIf you find a bug or wish to submit a suggestion, you can open a discussion on GitHub.
Two new official gems
\nSolid Queue, a DB-based queuing backend for Active Job, has graduated to an official Rails gem.
Same for Mission Control — Jobs, \nwhich provides a Rails-based frontend to Active Job adapters. \nIt currently supports Resque and Solid Queue.
\n\nDon’t enqueue jobs to process a preview image if no variant requires it
\nThis PR fixes the issue where previewable attachments that don’t specify any variants, or no variants that require pre-processing, \nwere still attempting to queue a job to process the preview image anyways.
Eliminate remaining uses of lease_connection inside Active Record
\nAs part of moving towards adding a new config.active_record.permanent_connection_checkout
setting, \nthis change eliminates the remaining uses of lease_connection
inside Active Record API.
Do not build View Watcher until the first updated? check
\nCurrently initialization of every Rails::Engine
leads to the creation of a new View watcher when the engine prepends its paths.\nThis contributes to the time it takes to perform the first cold request on a lazy loaded application.\nThis change delays the initialization of the View watcher until its first usage to only have one initialization of the watcher.
Allow primary_key: association option to be composite
\nAssociation’s primary_key
can be composite when derived from associated class’s primary_key
or query_constraints
. \nRails dint allow setting this explicitly even though it was already capable of supporting it.
This commit allows primary_key
association option to be an array to support this behavior.
You can view the whole list of changes here.
\nWe had 14 contributors to the Rails codebase this past week!
Until next time!
\n\nSubscribe to get these updates mailed to you.
","author"=>"vipulnsward",
"link"=>"https://rubyonrails.org/2024/3/22/this-week-in-rails",
"published_date"=>Fri, 22 Mar 2024 00:00:00.000000000 UTC +00:00,
"image_url"=>nil,
"feed_url"=>"https://rubyonrails.org/2024/3/22/this-week-in-rails",
"language"=>nil,
"active"=>true,
"ricc_source"=>"feedjira::v1",
"created_at"=>Wed, 03 Apr 2024 14:31:21.701272000 UTC +00:00,
"updated_at"=>Tue, 14 May 2024 04:41:47.263629000 UTC +00:00,
"newspaper"=>"Ruby on Rails",
"macro_region"=>"Technology"}