aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/admin/blog/posts_controller.rb
blob: bd5dd49c13489d31026acb47545c6142a8f0c3b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class Admin::Blog::PostsController < Admin::BaseController

  crudify :blog_post,
          :title_attribute => :title,
          :order => 'published_at DESC'

  before_filter :find_all_categories,
                :only => [:new, :edit, :create, :update]

protected
  def find_all_categories
    @blog_categories = BlogCategory.find(:all)
  end
end