feat(turbo): add turbo event helpers

This commit is contained in:
Paul Chavard 2022-04-14 20:46:28 +02:00
parent 69d5713c19
commit 0bd71ad51a
9 changed files with 152 additions and 1 deletions

View file

@ -0,0 +1,6 @@
- if flash.any?
= turbo_stream.replace 'flash_messages', partial: 'layouts/flash_messages'
= turbo_stream.hide 'flash_messages', delay: 10000
- flash.clear
= yield