From 8edfde238909585f4ab3f3837d6a87c7319f75b9 Mon Sep 17 00:00:00 2001 From: Jason Gessner Date: Sun, 24 Nov 2024 16:42:59 +0000 Subject: [PATCH] Remove unneeded include for CardPool to speed up response there. --- app/controllers/card_pools_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/card_pools_controller.rb b/app/controllers/card_pools_controller.rb index 5af7523..4ccd71e 100644 --- a/app/controllers/card_pools_controller.rb +++ b/app/controllers/card_pools_controller.rb @@ -4,8 +4,7 @@ class CardPoolsController < ApplicationController def index add_total_stat(params) - base_scope = CardPool.includes(:cards) - card_pools = CardPoolResource.all(params, base_scope) + card_pools = CardPoolResource.all(params) respond_with(card_pools) end