Sha256: e9d6d288b136c9105fa9192ef413807745642106fa6c605ce711fe749cf9f5a6

Contents?: true

Size: 350 Bytes

Versions: 6

Compression:

Stored size: 350 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
refinerycms-blog-1.1 app/controllers/admin/blog/posts_controller.rb
refinerycms-blog-1.0.1 app/controllers/admin/blog/posts_controller.rb
refinerycms-blog-1.0.rc16 app/controllers/admin/blog/posts_controller.rb
refinerycms-blog-1.0.rc15 app/controllers/admin/blog/posts_controller.rb
refinerycms-blog-1.0.rc14 app/controllers/admin/blog/posts_controller.rb
refinerycms-blog-1.0.rc13 app/controllers/admin/blog/posts_controller.rb