Changing location of the method past_due_date? in model Grouping