diff --git a/lib/responders/flash_responder.rb b/lib/responders/flash_responder.rb index 4f6597c..d216ab7 100644 --- a/lib/responders/flash_responder.rb +++ b/lib/responders/flash_responder.rb @@ -136,7 +136,7 @@ def set_flash(key, value) end def set_flash_now? - @flash_now == true || format == :js || + @flash_now == true || format == :js || format == :turbo_stream || (default_action && (has_errors? ? @flash_now == :on_failure : @flash_now == :on_success)) end