Module: ApplicationHelper
- Defined in:
- lib/generators/saaskit/install/templates/app/helpers/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#tailwindcss_class_for(flash_type) ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'lib/generators/saaskit/install/templates/app/helpers/application_helper.rb', line 2 def tailwindcss_class_for(flash_type) { notice: "info", error: "danger", alert: "warning", success: "success", }.stringify_keys[flash_type.to_s] || flash_type.to_s end |