mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-31 14:28:49 +01:00
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:
parent
631f9fe6ff
commit
953ca103e3
1 changed files with 2 additions and 2 deletions
|
|
@ -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? }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue