Skip to content

Commit 55926f1

Browse files
committed
This week in Rails (Friday, January 31, 2025)
1 parent a2aea45 commit 55926f1

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
layout: post
3+
title: "Minimal apps, reply_to address, rotate secrets, podman support"
4+
categories: news
5+
author: claudiob
6+
og_image: assets/images/this-week-in-rails.png
7+
published: true
8+
date: 2025-01-31
9+
---
10+
11+
12+
Hi, it's [Claudio Baccigalupo](https://github.com/claudiob).
13+
Let's explore this week’s changes in the Rails codebase.
14+
15+
[Extend --minimal option](https://github.com/rails/rails/pull/54313)
16+
`rails new --minimal` allows to create a basic Rails app, but recent additions to Rails were still included.
17+
Moving forward, this option will also skip Brakeman, CI, Docker, Kamal, Rubocop, Solid trifecta, and Thruster.
18+
19+
[Add reply_to_address to Mail::Message](https://github.com/rails/rails/pull/53513)
20+
When using Action Mailer you can now specify a `reply_to:` email address in addition to the `to:` recipient.
21+
22+
[Load the routes in the console when calling app](https://github.com/rails/rails/pull/54380)
23+
Have you ever needed to see what route helpers are available inside an IRB session?
24+
Moving forward they will be loaded in the `app` IRB helper.
25+
26+
```sh
27+
$ bin/rails c
28+
$ > app.root_path # => "/"
29+
```
30+
31+
[Fix rotate(on_rotation:)](https://github.com/rails/rails/pull/54371)
32+
`MessageVerifier` and `MessageEncryptor` were intended to accept an `on_rotation` callback but that wasn't the case.
33+
This PR fixes the behavior.
34+
35+
[Accept on_rotation argument in find_signed](https://github.com/rails/rails/pull/54373)
36+
Building on the previous change, `find_signed` and `find_signed!` now accept an `on_rotation` callback.
37+
This callback is triggered whenever the `signed_id_verifier` uses rotated secret keys, making it valuable for monitoring and tracking purposes.
38+
39+
[Make the devcontainer script work with podman](https://github.com/rails/rails/pull/54378)
40+
[podman](https://podman.io/) is an alternative to Docker.
41+
If you have it installed, the devcontainer script will use it, otherwise it will fall back to Docker.
42+
43+
[Fix Active Record instrumentation to be thread safe](https://github.com/rails/rails/pull/54344)
44+
When using Active Record async feature, the instrumentation was not thread safe.
45+
With the right race condition, instrumentation subscriptions would never fire up.
46+
47+
[Fix inverting rename_enum_value options](https://github.com/rails/rails/pull/54394)
48+
Did you know that you can rename an `enum` in your migrations using [rename_enum_value](https://edgeapi.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/PostgreSQLAdapter.html#method-i-rename_enum_value)?
49+
This commit fixes a bug so the `:from` and `:to` options are parsed correctly.
50+
51+
[Fix routes being cleared when using reload_routes!](https://github.com/rails/rails/pull/54306)
52+
Calling `Rails.application.reload_routes!` will now load all the routes without resetting them if they were already loaded.
53+
54+
55+
_You can view the whole list of changes [here](https://github.com/rails/rails/compare/@%7B2025-01-24%7D...main@%7B2025-01-31%7D)._
56+
_We had [23 contributors](https://contributors.rubyonrails.org/contributors/in-time-window/20250124-20250131) to the Rails codebase this past week!_
57+
58+
Until next time!

0 commit comments

Comments
 (0)