Sha256: dba654b913ab15e5517e04f5fe0c1c858c58c35931e9d35f99c42dad160d0261

Contents?: true

Size: 328 Bytes

Versions: 7

Compression:

Stored size: 328 Bytes

Contents

class Inventory::CategoriesController < ApplicationController
  include TheSortableTreeController::Rebuild

  def index
    @inventory_categories = Inventory::Category.nested_set.all
  end

  def manage
    @inventory_categories = Inventory::Category.nested_set.all
  end

  def sortable_model
    Inventory::Category
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
the_sortable_tree-2.6.2 spec/dummy_app/app/controllers/inventory/categories_controller.rb
the_sortable_tree-2.7.0 spec/dummy_app/app/controllers/inventory/categories_controller.rb
the_sortable_tree-2.6.1 spec/dummy_app/app/controllers/inventory/categories_controller.rb
the_sortable_tree-2.6.0 spec/dummy_app/app/controllers/inventory/categories_controller.rb
the_sortable_tree-2.5.0 spec/dummy_app/app/controllers/inventory/categories_controller.rb
the_sortable_tree-2.4.0 spec/dummy_app/app/controllers/inventory/categories_controller.rb
the_sortable_tree-2.3.3 spec/the_sortable_tree_app/app/controllers/inventory/categories_controller.rb