From 146eeb00aa15daebab90528173e92e89983cd458 Mon Sep 17 00:00:00 2001 From: Joe Sak Date: Tue, 12 Jul 2011 16:40:12 -0500 Subject: I don't know, it looks like before_filters are down here --- app/controllers/admin/blog/posts_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/controllers/admin/blog/posts_controller.rb b/app/controllers/admin/blog/posts_controller.rb index 2b124ba..c8dfc13 100644 --- a/app/controllers/admin/blog/posts_controller.rb +++ b/app/controllers/admin/blog/posts_controller.rb @@ -1,7 +1,7 @@ module Admin module Blog class PostsController < Admin::BaseController - before_filter :check_category_ids, :only => :update + crudify :blog_post, :title_attribute => :title, @@ -82,6 +82,8 @@ module Admin before_filter :find_all_categories, :only => [:new, :edit, :create, :update] + before_filter :check_category_ids, :only => :update + protected def find_all_categories @blog_categories = BlogCategory.find(:all) -- cgit v1.2.3