Method: Spree::Product#duplicate

Defined in:
app/models/spree/product.rb

#duplicateSpree::Product

Creates a new product with the same attributes, variants, etc.

Returns:



159
160
161
162
# File 'app/models/spree/product.rb', line 159

def duplicate
  duplicator = ProductDuplicator.new(self)
  duplicator.duplicate
end