Fix N+1 queries when rendering accounts on the admin collection page (#39738)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
90b3aedb9a
commit
fdbc41df8e
1 file changed
+1
-1
@@ -51,7 +51,7 @@ module Admin
|
||||
end
|
||||
|
||||
def set_collection
|
||||
@collection = @account.collections.includes(accepted_collection_items: :account).find(params[:id])
|
||||
@collection = @account.collections.includes(accepted_collection_items: { account: [:account_stat, user: [:ips, :invite_request]] }).find(params[:id])
|
||||
end
|
||||
|
||||
def set_collections
|
||||
|
||||
Reference in new issue
Block a user