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.
This commit is contained in:
Carlos Antonio da Silva
2023-02-09 08:51:03 -03:00
parent 8606e1e671
commit 31c4f31ef4

View File

@@ -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