Skip to content

Commit

Permalink
Tweak comment about overriding Devise.responder
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
carlosantoniodasilva committed Feb 9, 2023
1 parent 8606e1e commit 31c4f31
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,12 @@ module Test
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

Expand Down

0 comments on commit 31c4f31

Please sign in to comment.