mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-15 23:57:48 +00:00
17 lines
271 B
Ruby
17 lines
271 B
Ruby
# frozen_string_literal: true
|
|
|
|
class PaymentsRequiringActionQuery
|
|
def initialize(user)
|
|
@user = user
|
|
end
|
|
|
|
def call
|
|
Spree::Payment.joins(:order).where(spree_orders: { user_id: user.id }).
|
|
requires_authorization
|
|
end
|
|
|
|
private
|
|
|
|
attr_reader :user
|
|
end
|