aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/admin/blog/comments_controller.rb
blob: 33b3463b4b90960c337e7ce8a61b632f6f00e761 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class Admin::Blog::CommentsController < Admin::BaseController

  crudify :blog_comment,
          :title_attribute => :name,
          :order => 'created_at DESC'

  def index
    @blog_comments = BlogComment.unmoderated
    render :action => 'index'
  end

  def approved
    @blog_comments = BlogComment.approved
    render :action => 'index'
  end

  def rejected
    @blog_comments = BlogComment.rejected
    render :action => 'index'
  end

end