Module: Delayed::Web::ApplicationHelper

Defined in:
app/helpers/delayed/web/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#flash_dom_class(flash_type) ⇒ Object



4
5
6
7
8
9
10
# File 'app/helpers/delayed/web/application_helper.rb', line 4

def flash_dom_class flash_type
  case flash_type.to_s
  when 'notice' then 'alert-success'
  when 'alert'  then 'alert-error'
  else               'alert-info'
  end
end