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, #update_positions
Methods included from Core::ControllerHelpers::Common
Methods included from Core::ControllerHelpers::Auth
#current_ability, included, #redirect_back_or_default, #store_location, #try_spree_current_user, #unauthorized
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[:success] = (@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 |