mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-18 17:16:08 +10:00
display milestones that are not marked with a due date as active
This commit is contained in:
@@ -6,7 +6,7 @@ class Milestone < ActiveRecord::Base
|
||||
validates_presence_of :title
|
||||
|
||||
def self.active
|
||||
where("due_date > ? ", Date.today)
|
||||
where("due_date > ? OR due_date IS NULL", Date.today)
|
||||
end
|
||||
|
||||
def percent_complete
|
||||
|
||||
Reference in New Issue
Block a user