16 lines
303 B
Ruby
16 lines
303 B
Ruby
# frozen_string_literal: true
|
|
|
|
module ApplicationHelper
|
|
def bootstrap_class_for_flash(flash_type)
|
|
case flash_type
|
|
when 'success'
|
|
'alert-success'
|
|
when 'error', 'recaptcha_error'
|
|
'alert-danger'
|
|
when 'alert'
|
|
'alert-warning'
|
|
else
|
|
'alert-info'
|
|
end
|
|
end
|
|
end
|