display milestones that are not marked with a due date as active
This commit is contained in:
parent
ac3c23f933
commit
69fd4763d2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue