Method: Spree::Product#duplicate
- Defined in:
- app/models/spree/product.rb
#duplicate ⇒ Spree::Product
Creates a new product with the same attributes, variants, etc.
159 160 161 162 |
# File 'app/models/spree/product.rb', line 159 def duplicate duplicator = ProductDuplicator.new(self) duplicator.duplicate end |