OSDN Git Service
(root)
/
wvm
/
gitlab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac3c23f
)
display milestones that are not marked with a due date as active
author
James Newton
<james@Zaphyous.com>
Thu, 19 Apr 2012 18:24:02 +0000
(13:24 -0500)
committer
James Newton
<james@Zaphyous.com>
Thu, 19 Apr 2012 18:24:02 +0000
(13:24 -0500)
app/models/milestone.rb
patch
|
blob
|
history
diff --git
a/app/models/milestone.rb
b/app/models/milestone.rb
index
20bc248
..
87e9d1d
100644
(file)
--- a/
app/models/milestone.rb
+++ b/
app/models/milestone.rb
@@
-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