removes getting todos when generating home page which weren't used at all

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@750 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
lrbalt 2008-03-18 22:40:29 +00:00
parent 631f9fe6ff
commit 953ca103e3

View file

@ -10,8 +10,8 @@ class TodosController < ApplicationController
session :off, :only => :index, :if => Proc.new { |req| is_feed_request(req) }
def index
@projects = current_user.projects.find(:all, :include => [ :todos, :default_context ])
@contexts = current_user.contexts.find(:all, :include => [ :todos ])
@projects = current_user.projects.find(:all)
@contexts = current_user.contexts.find(:all)
@contexts_to_show = @contexts.reject {|x| x.hide? }