Class: IshManager::CategoriesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/ish_manager/categories_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#basic_auth, #home

Instance Method Details

#indexObject



6
7
8
9
10
11
# File 'app/controllers/ish_manager/categories_controller.rb', line 6

def index
  authorize! :categories_index, IshManager::Ability
  # @categories = Category.all_hierarchical
  @categories_flat = Category.all_flat
  @tags = Category.all_tags
end