Sha256: ad0f1271f454d583807c25523eeb4d9fad97311392f571b8fa379d49f876a595

Contents?: true

Size: 334 Bytes

Versions: 11

Compression:

Stored size: 334 Bytes

Contents

module Spree
  class ReturnItem < Spree::Base
    module ExchangeVariantEligibility
      class SameProduct
        def self.eligible_variants(variant, stock_locations: nil)
          Spree::Variant.where(product_id: variant.product_id, is_master: variant.is_master?).in_stock(stock_locations)
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
solidus_core-2.5.2 app/models/spree/return_item/exchange_variant_eligibility/same_product.rb
solidus_core-2.5.1 app/models/spree/return_item/exchange_variant_eligibility/same_product.rb
solidus_core-2.5.0 app/models/spree/return_item/exchange_variant_eligibility/same_product.rb
solidus_core-2.5.0.rc1 app/models/spree/return_item/exchange_variant_eligibility/same_product.rb
solidus_core-2.5.0.beta2 app/models/spree/return_item/exchange_variant_eligibility/same_product.rb
solidus_core-2.5.0.beta1 app/models/spree/return_item/exchange_variant_eligibility/same_product.rb
solidus_core-2.4.2 app/models/spree/return_item/exchange_variant_eligibility/same_product.rb
solidus_core-2.4.1 app/models/spree/return_item/exchange_variant_eligibility/same_product.rb
solidus_core-2.4.0 app/models/spree/return_item/exchange_variant_eligibility/same_product.rb
solidus_core-2.4.0.rc1 app/models/spree/return_item/exchange_variant_eligibility/same_product.rb
solidus_core-2.4.0.beta1 app/models/spree/return_item/exchange_variant_eligibility/same_product.rb