Sha256: a69670116f11286ff3892e2433600ac9ceeec865dbd97783ccd96cc7571eef93

Contents?: true

Size: 320 Bytes

Versions: 62

Compression:

Stored size: 320 Bytes

Contents

module Workarea
  class Order
    module ItemsExtension
      def find_existing(sku, customizations = {})
        customizations.stringify_keys! if customizations.present?

        detect do |item|
          item.sku == sku &&
            item.customizations_eql?(customizations)
        end
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.4.13 app/models/workarea/order/items_extension.rb
workarea-core-3.4.12 app/models/workarea/order/items_extension.rb