Class: Spree::ReturnItem::ExchangeVariantEligibility::SameProduct

Inherits:
Object
  • Object
show all
Defined in:
app/models/spree/return_item/exchange_variant_eligibility/same_product.rb

Class Method Summary collapse

Class Method Details

.eligible_variants(variant) ⇒ Object



5
6
7
# File 'app/models/spree/return_item/exchange_variant_eligibility/same_product.rb', line 5

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