16 lines
305 B
Ruby
16 lines
305 B
Ruby
module ApplicationHelper
|
|
def bootstrap_class_for(flash_type)
|
|
bootstrap_classes[flash_type] || flash_type.to_s
|
|
end
|
|
|
|
private
|
|
|
|
def bootstrap_classes
|
|
{
|
|
'alert' => 'alert-warning',
|
|
'error' => 'alert-danger',
|
|
'notice' => 'alert-info',
|
|
'success' => 'alert-success'
|
|
}
|
|
end
|
|
end
|