Take out n-query on home page

This commit is contained in:
Raphael Sofaer 2011-03-02 13:34:06 -08:00
parent 770091e82b
commit 685130cbd4

View file

@ -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