Sha256: c1f0dbe025cdff9cf380d5c68164e918c4e9b4f17393abde11c1035d20442ace

Contents?: true

Size: 304 Bytes

Versions: 2

Compression:

Stored size: 304 Bytes

Contents

module Workarea
  decorate Admin::CreateCatalogProductsController, with: :design_toscano do
    def save_details
      @product.additional_details = HashUpdate
        .new(original: @product.additional_details, updates: params[:additional_details])
        .result_grouped
      super
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-product_additional_details-2.0.0 app/controllers/workarea/admin/create_catalog_products_controller.decorator
workarea-product_additional_details-0.0.3 app/controllers/workarea/admin/create_catalog_products_controller.decorator