app/models/quarter.rb
# Returns the academic year of this quarter, which is returned as a string like "2008-2009." For purposes of this method,
# Summer is the first quarter of the academic year. So Summer 2008 will return "2008-2009" and Spring 2008 will return "2007-2008".
Returns the academic year of this quarter, which is returned as a string like "2008-2009." For purposes of this method,
Summer is the first quarter of the academic year.
Returns the academic year of this quarter which is returned as a string like " 2008 - 2009 . " For purposes of this method Summer is the first quarter of the academic year .
def academic_year
    academic_year = case quarter_code_id
    when 1
      "#{year-1}-#{year}"
    when 2
      "#{year-1}-#{year}"
    when 3
      "#{year}-#{year+1}"
    when 4
      "#{year}-#{year+1}"
    end
    academic_year
  end
def academic_year academic_year = case quarter_code_id when 1 "#{year-1}-#{year}" when 2 "#{year-1}-#{year}" when 3 "#{year}-#{year+1}" when 4 "#{year}-#{year+1}" end academic_year end
Returns the academic year of this quarter, which is returned as a string like "2008-2009."
Returns the academic year of this quarter which is returned as a string like " 2008 - 2009 . "