Don't n-query in contacts_sharing_with
This commit is contained in:
parent
753be12a1f
commit
8a2fece0f5
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ class AspectsController < ApplicationController
|
|||
@aspects = current_user.aspects.where(:id => params[:a_ids])
|
||||
else
|
||||
@aspects = current_user.aspects
|
||||
@contacts_sharing_with = current_user.contacts.sharing
|
||||
@contacts_sharing_with = current_user.contacts.sharing.includes(:person => :profile)
|
||||
end
|
||||
|
||||
#No aspect_listings on infinite scroll
|
||||
|
|
|
|||
Loading…
Reference in a new issue