restore the eager load of :default_context that I removed

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@751 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
lrbalt 2008-03-19 07:52:21 +00:00
parent 953ca103e3
commit ba03b7e6eb

View file

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