Class: E9Vendors::VendorCategoriesController

Inherits:
Admin::ResourceController
  • Object
show all
Includes:
E9Rails::Controllers::Sortable, Controller
Defined in:
app/controllers/e9_vendors/vendor_categories_controller.rb

Instance Method Summary collapse

Methods included from Controller

#add_index_breadcrumb

Instance Method Details

#createObject



9
10
11
# File 'app/controllers/e9_vendors/vendor_categories_controller.rb', line 9

def create
  create! { collection_path }
end

#destroyObject



17
18
19
20
21
22
# File 'app/controllers/e9_vendors/vendor_categories_controller.rb', line 17

def destroy
  destroy! do |format|
    format.html { redirect_to collection_path }
    format.js
  end
end

#updateObject



13
14
15
# File 'app/controllers/e9_vendors/vendor_categories_controller.rb', line 13

def update
  update! { collection_path }
end