Skip to content

Commit 9accc4b

Browse files
authored
Merge pull request #332 from plural/more-low-hanging-opt
Remove unneeded include for CardPool to speed up response there.
2 parents 19b20e7 + 8edfde2 commit 9accc4b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/controllers/card_pools_controller.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
class CardPoolsController < ApplicationController
55
def index
66
add_total_stat(params)
7-
base_scope = CardPool.includes(:cards)
8-
card_pools = CardPoolResource.all(params, base_scope)
7+
card_pools = CardPoolResource.all(params)
98
respond_with(card_pools)
109
end
1110

0 commit comments

Comments
 (0)