aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/admin
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/admin')
-rw-r--r--app/controllers/admin/blog/posts_controller.rb4
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)