Module: ApplicationHelper

Defined in:
app/helpers/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#bootstrap_class_for(flash_type) ⇒ Object


2
3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'app/helpers/application_helper.rb', line 2

def bootstrap_class_for(flash_type)
  case flash_type.to_sym
  when :success
    "alert-success"
  when :notice
    "alert-info"
  when :alert
    "alert-warning"
  when :danger
    "alert-danger"
  else
    flash_type.to_s
  end
end