Class: Legacy::Admin::PostsController

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

Instance Method Summary collapse

Instance Method Details

#indexObject

get /admin/posts



6
7
8
# File 'app/controllers/legacy/admin/posts_controller.rb', line 6

def index
  @collection = Post.page_for_administration current_page
end

#post_categoriesObject

get /admin/posts/:id/post_categories



15
16
17
# File 'app/controllers/legacy/admin/posts_controller.rb', line 15

def post_categories
  @collection = @entity.post_categories.page_for_administration
end

#showObject

get /admin/posts/:id



11
12
# File 'app/controllers/legacy/admin/posts_controller.rb', line 11

def show
end