app/models/enrollment.rb
# returns a friendly status string for the enrollment
returns a friendly status string for the enrollment
returns a friendly status string for the enrollment
def status_text
	  s = Enrollment::STATUS_NAMES[self.enrollment_status]
	  if [Enrollment::STATUS_CLOSED,Enrollment::STATUS_FINALIZED].include? self.enrollment_status
	    s += "-#{Enrollment::COMPLETION_NAMES[self.completion_status]}"
	  end
	  s
	end
def status_text s = Enrollment :: STATUS_NAMES [ self . enrollment_status ] if [ Enrollment :: STATUS_CLOSED , Enrollment :: STATUS_FINALIZED ] . include? self . enrollment_status s += "-#{Enrollment::COMPLETION_NAMES[self.completion_status]}" end s end
returns a friendly status string for the enrollment
returns a friendly status string for the enrollment