Skip to content
Snippets Groups Projects
Commit 69fd4763 authored by James Newton's avatar James Newton
Browse files

display milestones that are not marked with a due date as active

parent ac3c23f9
No related branches found
No related tags found
1 merge request!698Display Milestones without a due date as active
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