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.5.15 app/models/workarea/order/items_extension.rb
workarea-core-3.4.36 app/models/workarea/order/items_extension.rb
workarea-core-3.5.14 app/models/workarea/order/items_extension.rb
workarea-core-3.4.35 app/models/workarea/order/items_extension.rb
workarea-core-3.5.13 app/models/workarea/order/items_extension.rb
workarea-core-3.4.34 app/models/workarea/order/items_extension.rb
workarea-core-3.5.12 app/models/workarea/order/items_extension.rb
workarea-core-3.4.33 app/models/workarea/order/items_extension.rb
workarea-core-3.5.11 app/models/workarea/order/items_extension.rb
workarea-core-3.5.10 app/models/workarea/order/items_extension.rb
workarea-core-3.4.32 app/models/workarea/order/items_extension.rb
workarea-core-3.5.9 app/models/workarea/order/items_extension.rb
workarea-core-3.4.31 app/models/workarea/order/items_extension.rb
workarea-core-3.5.8 app/models/workarea/order/items_extension.rb
workarea-core-3.4.30 app/models/workarea/order/items_extension.rb
workarea-core-3.5.7 app/models/workarea/order/items_extension.rb
workarea-core-3.4.29 app/models/workarea/order/items_extension.rb
workarea-core-3.5.6 app/models/workarea/order/items_extension.rb
workarea-core-3.4.28 app/models/workarea/order/items_extension.rb
workarea-core-3.5.5 app/models/workarea/order/items_extension.rb