Fix Milestone.upcoming

This commit is contained in:
Douwe Maan 2016-03-23 15:09:58 +00:00
parent a4fa5d3e3d
commit b651a4fd41
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ class Milestone < ActiveRecord::Base
end
def self.upcoming
self.where('due_date > ?', Time.now).order(due_date: :asc).first
self.where('due_date > ?', Time.now).reorder(due_date: :asc).first
end
def to_reference(from_project = nil)