mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
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:
parent
953ca103e3
commit
ba03b7e6eb
1 changed files with 1 additions and 1 deletions
|
@ -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? }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue