Sha256: 18603874750fe28334af430e5e3a99a95d6e6698fab46f33d04ada84438fb7b2
Contents?: true
Size: 215 Bytes
Versions: 20
Compression:
Stored size: 215 Bytes
Contents
class Apiv1::Products::DestroyController < Admin::BaseController def destroy render json: { product: _product.destroy } end private def _product @product ||= Apiv1::Product.find params[:id] end end
Version data entries
20 entries across 20 versions & 1 rubygems