Module: Authz::ApplicationHelper Private
- Defined in:
- app/helpers/authz/application_helper.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Contains helpers that are available for use in any of the internal engine views.
Instance Method Summary collapse
-
#flash_class(name) ⇒ String
private
Css class for flash.
Instance Method Details
#flash_class(name) ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns css class for flash.
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'app/helpers/authz/application_helper.rb', line 8 def flash_class(name) case name when 'success' 'is-success' when 'error' 'is-danger' when 'notice' 'is-primary' when 'alert' 'is-warning' end end |