Class: Api::ShippingCategoriesController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/api/shipping_categories_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



3
4
5
6
7
8
9
10
11
12
# File 'app/controllers/api/shipping_categories_controller.rb', line 3

def destroy
   puts "&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&"
    puts params[object_name]
     puts params[:id]
    @object=ShippingCategory.find_by_id(params[:id])
     @object.destroy
    if @object.destroy
    render :text => 'Destroyed Successfully' 
  end
end