From fa4749dddc5bdafb8bf474ec972484cae256d891 Mon Sep 17 00:00:00 2001 From: soma-git-practice <92618416+soma-git-practice@users.noreply.github.com> Date: Sat, 18 Oct 2025 01:41:42 +0900 Subject: [PATCH] Expand reconfirmable comment on generator to match the module doc (#5748) Explain the combined usage of `reconfirmable` with `send_email_changed_notification`. [ci skip] --- lib/generators/templates/devise.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/generators/templates/devise.rb b/lib/generators/templates/devise.rb index 95bda7ce..9fe0ade8 100644 --- a/lib/generators/templates/devise.rb +++ b/lib/generators/templates/devise.rb @@ -157,6 +157,9 @@ Devise.setup do |config| # initial account confirmation) to be applied. Requires additional unconfirmed_email # db field (see migrations). Until confirmed, new email is stored in # unconfirmed_email column, and copied to email column on successful confirmation. + # Also, when used in conjunction with `send_email_changed_notification`, + # the notification is sent to the original email when the change is requested, + # not when the unconfirmed email is confirmed. config.reconfirmable = true # Defines which key will be used when confirming an account