From 31c4f31ef44f7849c1fb8dd4db282e7157ce2933 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Thu, 9 Feb 2023 08:51:03 -0300 Subject: [PATCH] Tweak comment about overriding Devise.responder Albeit it's not super recommended, it's possible and even mentioned in the changelog/wiki in case the app has some additional responder logic that needs to be applied to Devise across the board. --- lib/devise.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/devise.rb b/lib/devise.rb index 55045a8c..1d9370cc 100644 --- a/lib/devise.rb +++ b/lib/devise.rb @@ -220,10 +220,12 @@ module Devise mattr_accessor :navigational_formats @@navigational_formats = ["*/*", :html, :turbo_stream] - # The default responder used by Devise, not meant to be changed directly, - # but you can customize status codes with: - # `config.responder.error_status` - # `config.responder.redirect_status` + # The default responder used by Devise, used to customize status codes with: + # + # `config.responder.error_status` + # `config.responder.redirect_status` + # + # Can be replaced by a custom application responder. mattr_accessor :responder @@responder = Devise::Controllers::Responder