mirror of
https://github.com/diaspora/diaspora.git
synced 2026-01-09 15:18:11 -05:00
no more n-query in the view problem
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user