app/models/enrollment.rb
# returns an array of friendly credit strings
returns an array of friendly credit strings
returns an array of friendly credit strings
def credit_strings
	  if credit_assignments.empty? 
	    ["No credits assigned."]
	  else
	    credit_assignments.collect{|c| c.credit_string}
	  end
	end
def credit_strings if credit_assignments . empty? [ "No credits assigned." ] else credit_assignments . collect { | c | c . credit_string } end end
returns an array of friendly credit strings
returns an array of friendly credit strings