Sha256: 95c3a61002e91f207dd1123ab16780a8bf4e8000361617d1c381986604517735

Contents?: true

Size: 561 Bytes

Versions: 66

Compression:

Stored size: 561 Bytes

Contents

module Spree
  module Admin
    class TaxCategoriesController < ResourceController
      def destroy
        if @object.destroy
          flash[:success] = flash_message_for(@object, :successfully_removed)
          respond_with(@object) do |format|
            format.html { redirect_to collection_url }
            format.js   { render :partial => "spree/admin/shared/destroy" }
          end
        else
          respond_with(@object) do |format|
            format.html { redirect_to collection_url }
          end
        end
      end
    end
  end
end

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
spree_backend-2.4.10 app/controllers/spree/admin/tax_categories_controller.rb
spree_backend-2.3.13 app/controllers/spree/admin/tax_categories_controller.rb
spree_backend-2.2.14 app/controllers/spree/admin/tax_categories_controller.rb
spree_backend-2.4.9 app/controllers/spree/admin/tax_categories_controller.rb
spree_backend-2.3.12 app/controllers/spree/admin/tax_categories_controller.rb
spree_backend-2.2.13 app/controllers/spree/admin/tax_categories_controller.rb
spree_backend-2.4.8 app/controllers/spree/admin/tax_categories_controller.rb
spree_backend-2.3.11 app/controllers/spree/admin/tax_categories_controller.rb
spree_backend-2.2.12 app/controllers/spree/admin/tax_categories_controller.rb
spree_backend-2.4.7 app/controllers/spree/admin/tax_categories_controller.rb
spree_backend-2.3.10 app/controllers/spree/admin/tax_categories_controller.rb
spree_backend-2.4.6 app/controllers/spree/admin/tax_categories_controller.rb
spree_backend-2.3.9 app/controllers/spree/admin/tax_categories_controller.rb
spree_backend-2.2.11 app/controllers/spree/admin/tax_categories_controller.rb
spree_backend-2.2.10 app/controllers/spree/admin/tax_categories_controller.rb
spree_backend-2.3.8 app/controllers/spree/admin/tax_categories_controller.rb
spree_backend-2.4.5 app/controllers/spree/admin/tax_categories_controller.rb
spree_backend-2.4.4 app/controllers/spree/admin/tax_categories_controller.rb
spree_backend-2.3.7 app/controllers/spree/admin/tax_categories_controller.rb
spree_backend-2.4.3 app/controllers/spree/admin/tax_categories_controller.rb