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, #edit, #new, #update, #update_positions
Methods included from SetsUserLanguageLocaleKey
Instance Method Details
#destroy ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'app/controllers/spree/admin/shipping_methods_controller.rb', line 10 def destroy @object.discard flash[:success] = (@object, :successfully_removed) respond_with(@object) do |format| format.html { redirect_to collection_url } format.js { render_js_for_destroy } end end |