Module: RailsBootstrapAlerts::ViewHelpers
- Defined in:
- lib/rails_bootstrap_alerts/view_helpers.rb
Constant Summary collapse
- ALERTS =
{ 'notice' => 'alert alert-info', 'success' => 'alert alert-success', 'error' => 'alert alert-danger', 'alert' => 'alert alert-danger' }
Instance Method Summary collapse
Instance Method Details
#flash_class(flash_name) ⇒ Object
10 11 12 |
# File 'lib/rails_bootstrap_alerts/view_helpers.rb', line 10 def flash_class(flash_name) ALERTS.fetch(flash_name, '') end |