Module: Delayed::Web::JobsHelper

Defined in:
app/helpers/delayed/web/jobs_helper.rb

Instance Method Summary collapse

Instance Method Details

#status_dom_class(status) ⇒ Object



2
3
4
5
6
7
8
# File 'app/helpers/delayed/web/jobs_helper.rb', line 2

def status_dom_class status
  case status
  when 'executing' then 'badge badge-warning'
  when 'failed'    then 'badge badge-important'
  else                  'badge'
  end
end