Take off the including of contacts in aspectscontroller. Cross your fingers for a performance boost.
This commit is contained in:
parent
a36bd9897f
commit
7baeaebe57
1 changed files with 0 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue