no more n-query in the view problem

This commit is contained in:
danielgrippi
2011-05-13 16:49:37 -07:00
parent 402e84708b
commit ee49fb3547
3 changed files with 6 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ class ContactsController < ApplicationController
end
def sharing
@contacts = current_user.contacts.sharing
@contacts = current_user.contacts.sharing.includes(:aspects)
render :layout => false
end
end