Class: Spree::Api::ShippingMethodsController
- Inherits:
-
BaseController
- Object
- BaseController
- Spree::Api::ShippingMethodsController
- Defined in:
- app/controllers/api/shipping_methods_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/shipping_methods_controller.rb', line 13 def destroy puts "&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&" puts params[:id] @object=Spree::ShippingMethod.find_by_id(params[:id]) @object.destroy if @object.destroy render :text => "Status => Success", :status => 201 end end |