Sha256: 0912ca7f39fcfca2c1e862cc3775a47561d3154a6f529d88fd1c495305b822ee
Contents?: true
Size: 685 Bytes
Versions: 10
Compression:
Stored size: 685 Bytes
Contents
class E9Vendors::VendorCategoriesController < Admin::ResourceController include E9Vendors::Controller include E9Rails::Controllers::Sortable respond_to :html, :js add_resource_breadcrumbs def create create! { collection_path } end def update update! { collection_path } end def destroy destroy! do |format| format.html { redirect_to collection_path } format.js end end protected ## # IR # def collection get_collection_ivar || set_collection_ivar(end_of_association_chain.order(:position).all) end def resource get_resource_ivar || set_resource_ivar(end_of_association_chain.find(params[:id])) end end
Version data entries
10 entries across 10 versions & 1 rubygems