Merge pull request #698 from Sindacious/master
Display Milestones without a due date as active
This commit is contained in:
commit
60bf502bf1
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…
Add table
Reference in a new issue