From 685130cbd4b573aa541f1832e117b0d61d46ba8c Mon Sep 17 00:00:00 2001 From: Raphael Sofaer <raphael@joindiaspora.com> Date: Wed, 2 Mar 2011 13:34:06 -0800 Subject: [PATCH] Take out n-query on home page --- app/controllers/aspects_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/aspects_controller.rb b/app/controllers/aspects_controller.rb index ecb4f33e66..e2bb208812 100644 --- a/app/controllers/aspects_controller.rb +++ b/app/controllers/aspects_controller.rb @@ -16,7 +16,7 @@ class AspectsController < ApplicationController @selected_contacts.uniq! else @aspects = current_user.aspects.includes(:contacts => {:person => :profile}) - @selected_contacts = current_user.contacts + @selected_contacts = current_user.contacts.includes(:person => :profile) end # redirect to signup -- GitLab