- Defined in:
Option types denote the different options for a variant. A typical option type would be a size, with that option type’s values being something such as “Small”, “Medium” and “Large”. Another typical option type could be a color, such as “Red”, “Green”, or “Blue”.
A product can be assigned many option types, but must be assigned at least one if you wish to create variants for that product.
Instance Method Summary collapse
Methods inherited from
, , ,
Methods included from
, , , , , , ,
Instance Method Details
#touch_all_products ⇒ Object
26 27 28
# File 'app/models/spree/option_type.rb', line 26 def touch_all_products products.find_each(&:touch) end