From 1a60281f8e9c3dbd56b5b071fa8f66edbeb398fe Mon Sep 17 00:00:00 2001 From: Nat Dean-Lewis Date: Tue, 28 Jul 2026 16:50:00 +0100 Subject: [PATCH] docs: clarify devise 2fa rails8 patch --- .../devise_two_factor_authentication_rails8_patch.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/initializers/devise_two_factor_authentication_rails8_patch.rb b/config/initializers/devise_two_factor_authentication_rails8_patch.rb index c60fd5b91..ba06fa185 100644 --- a/config/initializers/devise_two_factor_authentication_rails8_patch.rb +++ b/config/initializers/devise_two_factor_authentication_rails8_patch.rb @@ -1,11 +1,11 @@ # frozen_string_literal: true -# Compatibility patch for devise_two_factor_authentication 3.0.0 on Rails 8.1+. +# Compatibility patch for devise_two_factor_authentication 3.0.0 on Rails 8+. # # The gem's route mapper passes the non-standard :resend_code action into -# `resource ... only: [...]`. Rails 8.1 tightened `resource`/`resources` to raise +# `resource ... only: [...]`. Rails 8 tightened `resource`/`resources` to raise # an ArgumentError when :only/:except contain anything outside the standard REST -# actions. So, we redefine the mapper method to drop it now we are on Rails 8.1+. +# actions. So, we redefine the mapper method here to drop it now we are on Rails 8+ module ActionDispatch::Routing class Mapper protected