app/models/task.rb
# Converts int values of priorty into appropriate strings
Converts int values of priorty into appropriate strings
Converts int values of priorty into appropriate strings
def priority_string
    case priority
    when 0
      "high"
    when 1
      "medium"
    when 2
      "low"
    else
      "invalid"
    end
  end
def priority_string case priority when 0 "high" when 1 "medium" when 2 "low" else "invalid" end end
Converts int values of priorty into appropriate strings
Converts int values of priorty into appropriate strings