app/models/quarter.rb
def next
    next_qtr_code = quarter_code_id == 4 ? 1 : quarter_code_id + 1
    next_year = quarter_code_id == 4 ? year + 1 : year
    Quarter.find_easily(next_qtr_code, next_year)
  end
# Determines the next Quarter in the calendar
Determines the next Quarter in the calendar
Determines the next Quarter in the calendar
def next
    next_qtr_code = quarter_code_id == 4 ? 1 : quarter_code_id + 1
    next_year = quarter_code_id == 4 ? year + 1 : year
    Quarter.find_easily(next_qtr_code, next_year)
  end
def next next_qtr_code = quarter_code_id == 4 ? 1 : quarter_code_id + 1 next_year = quarter_code_id == 4 ? year + 1 : year Quarter . find_easily ( next_qtr_code , next_year ) end
Determines the next Quarter in the calendar
Determines the next Quarter in the calendar