Skip to content
Snippets Groups Projects
Commit 60bf502b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Merge pull request #698 from Sindacious/master

Display Milestones without a due date as active
parents 18454292 69fd4763
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment