Class: Spree::Admin::TaxCategoriesController
- Inherits:
-
ResourceController
- Object
- ApplicationController
- BaseController
- BaseController
- ResourceController
- Spree::Admin::TaxCategoriesController
- Defined in:
- app/controllers/spree/admin/tax_categories_controller.rb
Instance Method Summary collapse
Methods inherited from ResourceController
belongs_to, create, #create, destroy, #edit, #new, new_action, update, #update
Methods included from Core::ControllerHelpers
Instance Method Details
#destroy ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/controllers/spree/admin/tax_categories_controller.rb', line 4 def destroy if @object.mark_deleted! flash.notice = (@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 |