Class: Item::ProductSpecificationsCloner
- Inherits:
-
BaseService
- Object
- BaseService
- Item::ProductSpecificationsCloner
- Defined in:
- app/services/item/product_specifications_cloner.rb
Overview
Service object: product specifications cloner.
Instance Attribute Summary
Attributes inherited from BaseService
Instance Method Summary collapse
Methods inherited from BaseService
#initialize, #log_debug, #log_error, #log_info, #log_warning, #logger, #tagged_logger
Constructor Details
This class inherits a constructor from BaseService
Instance Method Details
#process(item) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'app/services/item/product_specifications_cloner.rb', line 4 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 true end |