Class: LesliBabel::Label

Inherits:
ApplicationRecord show all
Defined in:
app/models/lesli_babel/label.rb

Instance Method Summary collapse

Instance Method Details

#categoryObject



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