Sha256: d99f52b997c74008ee8e58661eed41a9790244c2c6ee37d7d575aac1d89ed8bf

Contents?: true

Size: 259 Bytes

Versions: 3

Compression:

Stored size: 259 Bytes

Contents

module Spree
  module ReturnItem::ExchangeVariantEligibility
    class SameProduct

      def self.eligible_variants(variant)
        Spree::Variant.where.not(id: variant.id).where(product_id: variant.product_id, is_master: false)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_core-2.4.0.rc3 app/models/spree/return_item/exchange_variant_eligibility/same_product.rb
spree_core-2.4.0.rc2 app/models/spree/return_item/exchange_variant_eligibility/same_product.rb
spree_core-2.4.0.rc1 app/models/spree/return_item/exchange_variant_eligibility/same_product.rb