Skip to content

Commit

Permalink
Add :turbo_stream as a default navigational format
Browse files Browse the repository at this point in the history
Fixes #5439
Rails 7 returns :turbo_stream as a request format out-of-the-box.
  • Loading branch information
nickrivadeneira committed Dec 18, 2021
1 parent 025b1c8 commit 719f6d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ module Test

# Which formats should be treated as navigational.
mattr_accessor :navigational_formats
@@navigational_formats = ["*/*", :html]
@@navigational_formats = ["*/*", :html, :turbo_stream]

# When set to true, signing out a user signs out all other scopes.
mattr_accessor :sign_out_all_scopes
Expand Down

0 comments on commit 719f6d0

Please sign in to comment.