mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Eager-load default card in customer serializer
This commit is contained in:
@@ -67,7 +67,7 @@ module Admin
|
||||
enterprise_id = Enterprise.managed_by(spree_current_user).
|
||||
select('enterprises.id').find_by_id(params[:enterprise_id])
|
||||
|
||||
Customer.of(enterprise_id)
|
||||
Customer.of(enterprise_id).includes(user: :credit_cards)
|
||||
end
|
||||
|
||||
def load_managed_shops
|
||||
|
||||
Reference in New Issue
Block a user