Sha256: 613292a663558593e01a727b2d080ce2f9a47d6c209e48b8583349d606d9dba9

Contents?: true

Size: 564 Bytes

Versions: 25

Compression:

Stored size: 564 Bytes

Contents

module Spree
  module Admin
    class TaxCategoriesController < ResourceController
      def destroy
        if @object.mark_deleted!
          flash.notice = 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

25 entries across 25 versions & 1 rubygems

Version Path
spree_core-1.2.5 app/controllers/spree/admin/tax_categories_controller.rb
spree_core-1.1.6 app/controllers/spree/admin/tax_categories_controller.rb
spree_core-1.1.5 app/controllers/spree/admin/tax_categories_controller.rb
spree_core-1.2.4 app/controllers/spree/admin/tax_categories_controller.rb
spree_core-1.0.7 app/controllers/spree/admin/tax_categories_controller.rb
spree_core-1.2.3 app/controllers/spree/admin/tax_categories_controller.rb
spree_core-1.2.2 app/controllers/spree/admin/tax_categories_controller.rb
spree_core-1.1.4 app/controllers/spree/admin/tax_categories_controller.rb
spree_core-1.2.0 app/controllers/spree/admin/tax_categories_controller.rb
spree_core-1.2.0.rc2 app/controllers/spree/admin/tax_categories_controller.rb
spree_core-1.2.0.rc1 app/controllers/spree/admin/tax_categories_controller.rb
spree_core-1.1.3 app/controllers/spree/admin/tax_categories_controller.rb
spree_core-1.0.6 app/controllers/spree/admin/tax_categories_controller.rb
spree_core-1.1.2 app/controllers/spree/admin/tax_categories_controller.rb
spree_core-1.1.2.rc1 app/controllers/spree/admin/tax_categories_controller.rb
spree_core-1.1.1 app/controllers/spree/admin/tax_categories_controller.rb
spree_core-1.1.0 app/controllers/spree/admin/tax_categories_controller.rb
spree_core-1.0.4 app/controllers/spree/admin/tax_categories_controller.rb
spree_core-1.1.0.rc2 app/controllers/spree/admin/tax_categories_controller.rb
spree_core-1.1.0.rc1 app/controllers/spree/admin/tax_categories_controller.rb