Sha256: 7492660a013cb05a04ad191120468bca1d5b76ff779f76ba6b400924320f67bf
Contents?: true
Size: 304 Bytes
Versions: 57
Compression:
Stored size: 304 Bytes
Contents
module Spree module CreditCards class Find def execute(scope:, params:) return scope.default.take if params[:id].eql?('default') return scope.where(payment_method_id: params[:filter]['payment_method_id']) if params[:filter].present? scope end end end end
Version data entries
57 entries across 57 versions & 1 rubygems