Sha256: de7d7123b6c7b64dd26cce8cbee320311585d94b367d65a3e99421b74d77f1b4
Contents?: true
Size: 602 Bytes
Versions: 3
Compression:
Stored size: 602 Bytes
Contents
module Workarea decorate Admin::CreateCatalogProductsController, with: :package_products do def index if params[:product_type] == 'package' redirect_to create_catalog_package_products_path elsif params[:product_type] == 'standard' super else render :select end end def edit if @product.package? flash.keep redirect_to edit_create_catalog_package_product_path( @product, continue: params[:continue] ) else super end end end end
Version data entries
3 entries across 3 versions & 1 rubygems