Module: Phcmemberspro::ApplicationHelper
- Defined in:
- app/helpers/phcmemberspro/application_helper.rb
Instance Method Summary collapse
-
#flash_class(level) ⇒ Object
Bootstrap Notification System.
Instance Method Details
#flash_class(level) ⇒ Object
Bootstrap Notification System
5 6 7 8 9 10 11 12 |
# File 'app/helpers/phcmemberspro/application_helper.rb', line 5 def flash_class(level) case level.to_sym when :notice then "alert alert-info" when :success then "alert alert-success" when :error then "alert alert-danger" when :alert then "alert alert-warning" end end |