Class: Spree::Admin::ShippingMethodsController
- Inherits:
-
ResourceController
- Object
- BaseController
- BaseController
- ResourceController
- Spree::Admin::ShippingMethodsController
- Defined in:
- app/controllers/spree/admin/shipping_methods_controller.rb
Instance Method Summary collapse
Methods inherited from ResourceController
belongs_to, create, #create, destroy, #edit, #new, new_action, #update, update, #update_positions
Instance Method Details
#destroy ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'app/controllers/spree/admin/shipping_methods_controller.rb', line 8 def destroy @object.touch :deleted_at flash[:success] = (@object, :successfully_removed) respond_with(@object) do |format| format.html { redirect_to collection_url } format.js { render_js_for_destroy } end end |