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

Version Path
cloudrider-0.3.0 generica/app/controllers/apiv1/products/destroy_controller.rb
cloudrider-0.2.18 generica/app/controllers/apiv1/products/destroy_controller.rb
cloudrider-0.2.15 generica/app/controllers/apiv1/products/destroy_controller.rb
cloudrider-0.2.14 generica/app/controllers/apiv1/products/destroy_controller.rb
cloudrider-0.2.12 generica/app/controllers/apiv1/products/destroy_controller.rb
cloudrider-0.2.11 generica/app/controllers/apiv1/products/destroy_controller.rb
cloudrider-0.2.10 generica/app/controllers/apiv1/products/destroy_controller.rb
cloudrider-0.2.9 generica/app/controllers/apiv1/products/destroy_controller.rb
cloudrider-0.2.8 generica/app/controllers/apiv1/products/destroy_controller.rb
cloudrider-0.2.7 generica/app/controllers/apiv1/products/destroy_controller.rb
cloudrider-0.2.6 generica/app/controllers/apiv1/products/destroy_controller.rb
cloudrider-0.2.5 generica/app/controllers/apiv1/products/destroy_controller.rb
cloudrider-0.2.4 generica/app/controllers/apiv1/products/destroy_controller.rb
cloudrider-0.2.3 generica/app/controllers/apiv1/products/destroy_controller.rb
cloudrider-0.2.2 generica/app/controllers/apiv1/products/destroy_controller.rb
cloudrider-0.2.1 generica/app/controllers/apiv1/products/destroy_controller.rb
cloudrider-0.2.0 generica/app/controllers/apiv1/products/destroy_controller.rb
cloudrider-0.1.3 generica/app/controllers/apiv1/products/destroy_controller.rb
cloudrider-0.1.2 generica/app/controllers/apiv1/products/destroy_controller.rb
cloudrider-0.1.0 generica/app/controllers/apiv1/products/destroy_controller.rb