Class: Spree::Admin::ShippingMethodsController
- Inherits:
-
ResourceController
- Object
- ApplicationController
- BaseController
- BaseController
- ResourceController
- Spree::Admin::ShippingMethodsController
- Defined in:
- app/controllers/spree/admin/shipping_methods_controller.rb
Instance Attribute Summary
Attributes included from Core::ControllerHelpers
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
7 8 9 10 11 12 13 14 15 16 |
# File 'app/controllers/spree/admin/shipping_methods_controller.rb', line 7 def destroy @object.update_attribute(:deleted_at, Time.now) flash.notice = (@object, :successfully_removed) respond_with(@object) do |format| format.html { redirect_to collection_url } format.js { render_js_for_destroy } end end |