Skip to content
Extraits de code Groupes Projets
Valider 8a2fece0 rédigé par Raphael Sofaer's avatar Raphael Sofaer
Parcourir les fichiers

Don't n-query in contacts_sharing_with

parent 753be12a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -15,7 +15,7 @@ class AspectsController < ApplicationController ...@@ -15,7 +15,7 @@ class AspectsController < ApplicationController
@aspects = current_user.aspects.where(:id => params[:a_ids]) @aspects = current_user.aspects.where(:id => params[:a_ids])
else else
@aspects = current_user.aspects @aspects = current_user.aspects
@contacts_sharing_with = current_user.contacts.sharing @contacts_sharing_with = current_user.contacts.sharing.includes(:person => :profile)
end end
#No aspect_listings on infinite scroll #No aspect_listings on infinite scroll
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter