Module: BootstrapHelper
- Defined in:
- lib/rails_app/template/app_bootstrap/helpers/bootstrap_helper.rb
Instance Method Summary collapse
Instance Method Details
#bootstrap_class_for(flash_type) ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'lib/rails_app/template/app_bootstrap/helpers/bootstrap_helper.rb', line 2 def bootstrap_class_for(flash_type) { success: "alert-success", error: "alert-danger", alert: "alert-warning", notice: "alert-primary" }.stringify_keys[flash_type.to_s] || flash_type.to_s end |