Commit 69fd4763d2d239877c46b0fa6be894f1338fc4e3
1 parent
ac3c23f9
Exists in
master
and in
4 other branches
display milestones that are not marked with a due date as active
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/milestone.rb
@@ -6,7 +6,7 @@ class Milestone < ActiveRecord::Base | @@ -6,7 +6,7 @@ class Milestone < ActiveRecord::Base | ||
6 | validates_presence_of :title | 6 | validates_presence_of :title |
7 | 7 | ||
8 | def self.active | 8 | def self.active |
9 | - where("due_date > ? ", Date.today) | 9 | + where("due_date > ? OR due_date IS NULL", Date.today) |
10 | end | 10 | end |
11 | 11 | ||
12 | def percent_complete | 12 | def percent_complete |