Method: Spree::Variant#variant_properties
- Defined in:
- app/models/spree/variant.rb
#variant_properties ⇒ Array<Spree::VariantPropertyRuleValue>
Determines the variant’s property values by verifying which of the product’s variant property rules apply to itself.
393 394 395 396 397 |
# File 'app/models/spree/variant.rb', line 393 def variant_properties product.variant_property_rules.map do |rule| rule.values if rule.applies_to_variant?(self) end.flatten.compact end |