diff --git a/app/controllers/aspects_controller.rb b/app/controllers/aspects_controller.rb index 774f4d20ba3d97cf6f18c005b7ccadbc2f6d3912..3a6c1951aea55dabd7ee8ffe05fa5d4ee0805035 100644 --- a/app/controllers/aspects_controller.rb +++ b/app/controllers/aspects_controller.rb @@ -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