Take off the including of contacts in aspectscontroller. Cross your fingers for a performance boost.

This commit is contained in:
Raphael Sofaer 2011-07-02 12:39:25 -07:00
parent a36bd9897f
commit 7baeaebe57

View file

@ -20,9 +20,6 @@ class AspectsController < ApplicationController
aspect_ids = @aspects.map{|a| a.id}
#No aspect_listings on infinite scroll
@aspects = @aspects.includes(:contacts => {:person => :profile}) unless params[:only_posts]
# redirect to signup
if (current_user.getting_started == true || @aspects.blank?) && !request.format.mobile? && !request.format.js?
redirect_to getting_started_path