mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-09 06:48:01 -05:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user