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:
parent
98799b3971
commit
6b46d69b65
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue