module ApplicationHelper
Public Instance Methods
tailwindcss_class_for(flash_type)
click to toggle source
# 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