module ApplicationHelper

Public Instance Methods

bootstrap_class_for(flash_type) click to toggle source
# File lib/generators/bootstrap/install/templates/application_helper.rb, line 2
def bootstrap_class_for(flash_type)
  {
    success: "alert-success",
    error: "alert-danger",
    alert: "alert-warning",
    notice: "alert-info"
  }.stringify_keys[flash_type.to_s] || flash_type.to_s
end