do not load contexts for review, not necessary

This commit is contained in:
Carsten Otto 2016-01-17 17:43:31 +01:00
parent e5cf1ab604
commit 94f60ffba4

View file

@ -58,7 +58,6 @@ class ProjectsController < ApplicationController
@source_view = params['_source_view'] || 'review'
@page_title = t('projects.list_reviews')
@projects = current_user.projects.load
@contexts = current_user.contexts.load
@projects_to_review = current_user.projects.select {|p| p.needs_review?(current_user)}
@stalled_projects = current_user.projects.select {|p| p.stalled?}
@blocked_projects = current_user.projects.select {|p| p.blocked?}