Class: LesliBabel::Label
- Inherits:
-
ApplicationRecord
- Object
- Lesli::ApplicationLesliRecord
- ApplicationRecord
- LesliBabel::Label
- Defined in:
- app/models/lesli_babel/label.rb
Instance Method Summary collapse
Instance Method Details
#category ⇒ Object
37 38 39 40 41 42 |
# File 'app/models/lesli_babel/label.rb', line 37 def category return "warning" if need_help? return "info" if need_context? return "danger" if need_translation? "ok" end |