Sha256: 8b3f4481839f4d75bcf5c17045f5e801b42a62fd747f399036a178f261acf7c8

Contents?: true

Size: 294 Bytes

Versions: 5

Compression:

Stored size: 294 Bytes

Contents

class Api::TaxonomiesController < Api::BaseController
     
    public
    def destroy
           puts params[:id]
      @object=Spree::Taxonomy.find_by_id(params[:id])
       @object.destroy
      if @object.destroy
      render :text => "Status => Success", :status => 201
    end
  end 
end

Version data entries

5 entries across 5 versions & 4 rubygems

Version Path
My-Commerce_api-1.1.0 app/controllers/api/taxonomies_controller.rb
My-Commerce_api-1.0.0 app/controllers/api/taxonomies_controller.rb
MyCommerceapi-1.0.0 api/app/controllers/api/taxonomies_controller.rb
MyCommerce-0.0.3 api/app/controllers/api/taxonomies_controller.rb
rfcommerce_api-0.0.3 app/controllers/api/taxonomies_controller.rb