Commit 60bf502b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #698 from Sindacious/master

Display Milestones without a due date as active
parents 18454292 69fd4763
...@@ -6,7 +6,7 @@ class Milestone < ActiveRecord::Base ...@@ -6,7 +6,7 @@ class Milestone < ActiveRecord::Base
validates_presence_of :title validates_presence_of :title
def self.active def self.active
where("due_date > ? ", Date.today) where("due_date > ? OR due_date IS NULL", Date.today)
end end
def percent_complete def percent_complete
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment