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

This reverts commit 7baeaebe57.
This commit is contained in:
Raphael Sofaer 2011-07-02 14:38:17 -07:00
parent 98799b3971
commit 6b46d69b65

View file

@ -20,6 +20,9 @@ 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