Commit 60bf502bf15b95c870a8466011a6f91eb18759a9
Exists in
master
and in
4 other branches
Merge pull request #698 from Sindacious/master
Display Milestones without 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 |