Method: Spree::Product#has_variants?
- Defined in:
- app/models/spree/product.rb
#has_variants? ⇒ Boolean
Returns true if there are any variants.
137 138 139 |
# File 'app/models/spree/product.rb', line 137 def has_variants? variants.any? end |