Class: Item::ProductSpecificationsCloner
- Inherits:
-
BaseService
- Object
- BaseService
- Item::ProductSpecificationsCloner
- Defined in:
- app/services/item/product_specifications_cloner.rb
Instance Method Summary collapse
Methods inherited from BaseService
#initialize, #log_debug, #log_error, #log_info, #log_warning, #logger, #options, #tagged_logger
Constructor Details
This class inherits a constructor from BaseService
Instance Method Details
#process(item) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'app/services/item/product_specifications_cloner.rb', line 3 def process(item) item.product_specifications.each do |ps| product_specification = ps.dup product_specification.template = false #product_specification.attributes = product_specification_params product_specification.save end return true end |