diff options
author | Joe Sak <joe@joesak.com> | 2011-07-12 16:40:12 -0500 |
---|---|---|
committer | Joe Sak <joe@joesak.com> | 2011-07-12 16:40:12 -0500 |
commit | 146eeb00aa15daebab90528173e92e89983cd458 (patch) | |
tree | 96c6aa5bcccdedc33e1d0c4735e499b8561cc6c0 /app/controllers | |
parent | c82a32ed3e3cc45e3425ae360b8a537a6ad367a1 (diff) | |
download | refinerycms-blog-146eeb00aa15daebab90528173e92e89983cd458.tar.gz refinerycms-blog-146eeb00aa15daebab90528173e92e89983cd458.tar.bz2 refinerycms-blog-146eeb00aa15daebab90528173e92e89983cd458.zip |
I don't know, it looks like before_filters are down here
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/admin/blog/posts_controller.rb | 4 |
1 files changed, 3 insertions, 1 deletions
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) |