Module: PinFlags::ApplicationHelper
- Defined in:
- app/helpers/pin_flags/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#flash_class(type) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'app/helpers/pin_flags/application_helper.rb', line 3 def flash_class(type) case type.to_s when "notice", "success" "is-success" when "alert", "error" "is-danger" when "warning" "is-warning" else "is-info" end end |
#page_title ⇒ Object
16 17 18 |
# File 'app/helpers/pin_flags/application_helper.rb', line 16 def page_title content_for?(:title) ? content_for(:title) : "Dashboard" end |