Module: StatusHelper

Included in:
ProgressBarHelper
Defined in:
app/helpers/status_helper.rb

Instance Method Summary collapse

Instance Method Details

#class_for_exercise(exercise) ⇒ Object



10
11
12
# File 'app/helpers/status_helper.rb', line 10

def class_for_exercise(exercise)
  class_for_status(exercise.status_for(current_user))
end

#class_for_status(s) ⇒ Object



2
3
4
# File 'app/helpers/status_helper.rb', line 2

def class_for_status(s)
  s.to_mumuki_status.iconize[:class].to_s
end

#icon_type_for_status(s) ⇒ Object



6
7
8
# File 'app/helpers/status_helper.rb', line 6

def icon_type_for_status(s)
  s.to_mumuki_status.iconize[:type].to_s
end