Class: Legacy::Admin::PostCategoriesController

Inherits:
AdminController
  • Object
show all
Defined in:
app/controllers/legacy/admin/post_categories_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



5
6
7
# File 'app/controllers/legacy/admin/post_categories_controller.rb', line 5

def index
  @collection = PostCategory.for_tree
end

#itemsObject

get /admin/post_categories/:id/items



14
15
16
# File 'app/controllers/legacy/admin/post_categories_controller.rb', line 14

def items
  @collection = Post.in_category(@entity).page_for_administration current_page
end

#showObject

get /admin/post_categories/:id



10
11
# File 'app/controllers/legacy/admin/post_categories_controller.rb', line 10

def show
end