Module: Uchi::ApplicationHelper
- Defined in:
- app/helpers/uchi/application_helper.rb
Instance Method Summary collapse
-
#flash_style(flash_type) ⇒ Object
Maps Rails flash types to Flowbite Toast styles.
Instance Method Details
#flash_style(flash_type) ⇒ Object
Maps Rails flash types to Flowbite Toast styles
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/helpers/uchi/application_helper.rb', line 4 def flash_style(flash_type) case flash_type.to_sym when :success :success when :alert, :error :danger when :warning :warning else :default end end |