Sha256: 1b06cb739ab62ea2df23123d5353a06bc338091d927ccb3fe214ed8ff61cbbe9

Contents?: true

Size: 762 Bytes

Versions: 5

Compression:

Stored size: 762 Bytes

Contents

class Api::TaxCategoriesController < Api::BaseController

      # Looks like this action is unused
      # def filtered
        # @properties = Property.where('lower(name) LIKE ?', "%#{params[:q].mb_chars.downcase}%").order(:name)
        # respond_with(@properties) do |format| 
          # format.html { render :template => "spree/admin/properties/filtered", :formats => [:html], :handlers => [:erb], :layout => false } 
        # end
      # end
    # end
  # end
   public
    def destroy
     puts "&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&"
      puts params[object_name]
       puts params[:id]
      @object=Spree::TaxCategory.find_by_id(params[:id])
       @object.destroy
      if @object.destroy
      render :text => 'Destroyed' 
    end
  end
  
end

Version data entries

5 entries across 5 versions & 4 rubygems

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