DRY up code around Immediate and Deferred actions, including controller methods and views

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
This commit is contained in:
lukemelia 2006-07-17 03:40:35 +00:00
parent 13f7f443af
commit 1ee651f8bb
19 changed files with 132 additions and 255 deletions

View file

@ -223,8 +223,8 @@ class ContextController < ApplicationController
def init_todos
check_user_set_context
@done = @context.find_done_todos
@not_done = @context.find_not_done_todos
@done = @context.done_todos
@not_done = @context.not_done_todos
@count = @not_done.size
end