Class: Api::ImagesController
- Inherits:
-
Spree::Api::BaseController
- Object
- Spree::Api::BaseController
- Api::ImagesController
- Defined in:
- app/controllers/api/images_controller.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'app/controllers/api/images_controller.rb', line 4 def destroy puts "&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&" puts params[object_name] puts params[:id] @object=Image.find_by_id(params[:id]) @object.destroy if @object.destroy render :text => 'Image Destroyed Successfully' end end |