dawarich/app/helpers/application_helper.rb

11 lines
228 B
Ruby
Raw Normal View History

module ApplicationHelper
2024-01-03 06:13:00 -05:00
def classes_for_flash(flash_type)
case flash_type.to_sym
when :error
'bg-red-100 text-red-700 border-red-300'
else
'bg-blue-100 text-blue-700 border-blue-300'
end
end
end