Module: BurdenWeb::ApplicationHelper

Defined in:
app/helpers/burden_web/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#task_label(run) ⇒ Object



3
4
5
6
7
8
9
10
11
12
# File 'app/helpers/burden_web/application_helper.rb', line 3

def task_label run
  case run.success
  when true
    'success'
  when false
    'alert'
  else
    'secondary'
  end
end