mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-04 06:51:48 +01:00
Relocated todo_controller#deferred_update_action to be next to todo_controller#update_action Include all non-hidden contexts on the home page, but hide the empty ones. Ground work for supporting the automatic showing of a context with zero items when an item is moved to it. Added a comment about todo_controller#update_element -- is it used? Remove unused #list_of method from context, note & project models Remove unused #list_all method from note model Methods to lazy load done_todos and not_done_todos for project and context models Fixes #322 git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@282 a4c988fc-2ded-0310-b66e-134b36920a42
9 lines
208 B
Ruby
9 lines
208 B
Ruby
class Deferred < Todo
|
|
validates_presence_of :show_from
|
|
|
|
def validate
|
|
if show_from != nil && show_from < Date.today()
|
|
errors.add("Show From", "must be a date in the future.")
|
|
end
|
|
end
|
|
end
|