add recurring todos to tracks

This commit is contained in:
Reinier Balt 2008-07-19 20:27:45 +02:00
parent c46f0a8e04
commit 8bc41e2cb0
41 changed files with 2576 additions and 632 deletions

View file

@ -3,6 +3,7 @@ class Todo < ActiveRecord::Base
belongs_to :context
belongs_to :project
belongs_to :user
belongs_to :recurring_todo
STARRED_TAG_NAME = "starred"
@ -120,4 +121,8 @@ class Todo < ActiveRecord::Base
starred?
end
def from_recurring_todo?
return self.recurring_todo_id != nil
end
end