Sha256: e5a7def7449a243fa803f8ca766d1b1299c2d0f0288cc742eaa8d694cc002ec5
Contents?: true
Size: 1007 Bytes
Versions: 2
Compression:
Stored size: 1007 Bytes
Contents
module Workarea decorate Admin::CreateCatalogProductsController, with: :product_bundles do def index if params[:product_type] == 'package' redirect_to create_catalog_product_bundles_path(template: 'package') elsif params[:product_type] == 'family' redirect_to create_catalog_product_bundles_path(template: 'family') elsif params[:product_type] == 'kit' redirect_to create_catalog_product_kits_path elsif params[:product_type] == 'standard' super else render :select end end def edit return super unless @product.bundle? flash.keep if @product.kit? redirect_to( edit_create_catalog_product_kit_path( @product, continue: params[:continue] ) ) else redirect_to( edit_create_catalog_product_bundle_path( @product, continue: params[:continue] ) ) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems