This repository has been archived on 2023-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
|
# frozen_string_literal: true
|
|
|
|
module ApplicationHelper
|
|
def bootstrap_class_for_flash(flash_type)
|
|
case flash_type
|
|
when 'success'
|
|
'alert-success'
|
|
when 'error'
|
|
'alert-danger'
|
|
when 'alert'
|
|
'alert-warning'
|
|
else
|
|
'alert-info'
|
|
end
|
|
end
|
|
end
|