Class: Api::VariantsController
- Inherits:
-
BaseController
- Object
- BaseController
- Api::VariantsController
- Defined in:
- app/controllers/api/variants_controller.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'app/controllers/api/variants_controller.rb', line 13 def destroy puts "&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&" puts params[object_name] puts params[:id] @object=Spree::Variant.find_by_id(params[:id]) @object.destroy if @object.destroy render :text => 'Destroyed' end end |