Class: Spree::Admin::ShippingMethodsController

Inherits:
ResourceController show all
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

#set_user_language_locale_key

Instance Method Details

#destroyObject



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] = flash_message_for(@object, :successfully_removed)

  respond_with(@object) do |format|
    format.html { redirect_to collection_url }
    format.js { render_js_for_destroy }
  end
end