fix setting parent_id, add approval status notices on top of post/show

This commit is contained in:
albert
2011-10-22 12:54:14 -04:00
parent b5cf9bf41f
commit 73a8c19c6e
8 changed files with 62 additions and 18 deletions

View File

@@ -6,6 +6,7 @@ module Moderator
def create
@post = ::Post.find(params[:post_id])
@post.approve!
rescue ::Post::ApprovalError
end
end
end