Sha256: 9e0780f85c4c0fb2653d9e2edba1b2dc0f2fece5ebd0292917b44d2dcb7dfb1e
Contents?: true
Size: 389 Bytes
Versions: 97
Compression:
Stored size: 389 Bytes
Contents
module Spree module LineItems class FindByVariant def execute(order:, variant:, options: {}) order.line_items.detect do |line_item| next unless line_item.variant_id == variant.id Spree::Dependencies.cart_compare_line_items_service.constantize.call(order: order, line_item: line_item, options: options).value end end end end end
Version data entries
97 entries across 97 versions & 1 rubygems