Move eager loading line_items to controller

This commit is contained in:
Nihal Mohammed
2021-05-13 01:12:13 +05:30
parent fcf70c242e
commit 367cee593f
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ module Spree
def show
@payments_requiring_action = PaymentsRequiringAction.new(spree_current_user).query
@orders = orders_collection
@orders = orders_collection.includes(:line_items)
customers = spree_current_user.customers
@shops = Enterprise