提交 69fd4763 编写于 作者: J James Newton

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

上级 ac3c23f9
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册