Hi, it’s Claudio Baccigalupo. Let’s explore this week’s changes in the Rails codebase.
Set read-only permissions for GitHub Actions workflow generated by rails new
The workflow will run with the minimum required permissions, regardless of the GitHub Organization settings.
Don’t guard action_dispatch_request and action_cable load hooks
Removes the load hooks guard for action_dispatch_request in Action Pack and action_cable in Action Cable.
Improve Trix support for Action Text markdown
Adds <del> as a strikethrough alias (Trix emits <del>, not <s>).
Also, add a visit_div handler so Trix-style <div> blocks pass through their children’s content, letting <br> tags handle paragraph spacing naturally.
Specify PostgreSQL 9.5 or higher is required
Rails includes array_position which is not available on previous versions.
Fix Encoding::CompatibilityError with non-ASCII strict locals defaults
Fixes an error raised by a template loaded via File.binread using strict locals with non-ASCII default values (e.g. <%# locals: (label: "café") -%>).
Fix IsolatedExecutionState.share_with call
When isolation_level = :fiber, it’s wrong to pass the original thread to share_with.
Fix collection caching to preserve store default expires_in
This change ensures that expires_in is only included in the arguments to write_multi when it is present in the collection cache options.
You can view the whole list of changes here.
We had 12 contributors to the Rails codebase this past week!
Until next time!
Subscribe to get these updates mailed to you.