Module: Bigmouth::ApplicationHelper
- Included in:
- Admin::ApplicationHelper
- Defined in:
- app/helpers/bigmouth/application_helper.rb
Instance Method Summary collapse
-
#alert_class_for(flash_type) ⇒ Object
Returns Bootstrap friendly type.
- #author(article) ⇒ Object
- #summary(article) ⇒ Object
Instance Method Details
#alert_class_for(flash_type) ⇒ Object
Returns Bootstrap friendly type
4 5 6 7 8 9 10 11 12 |
# File 'app/helpers/bigmouth/application_helper.rb', line 4 def alert_class_for(flash_type) { success: 'alert-success', error: 'alert-danger', danger: 'alert-danger', alert: 'alert-warning', notice: 'alert-info' }[flash_type.to_sym] || flash_type.to_s end |