Module: Weeler::FlashHelper

Defined in:
app/helpers/weeler/flash_helper.rb

Instance Method Summary collapse

Instance Method Details

#alert_class_for(flash_type) ⇒ Object



3
4
5
6
7
8
9
10
# File 'app/helpers/weeler/flash_helper.rb', line 3

def alert_class_for(flash_type)
  {
    :success => 'alert-success',
    :error => 'alert-danger',
    :alert => 'alert-warning',
    :notice => 'alert-info'
  }[flash_type.to_sym] || "alert-info"
end