got rid of removedpost, restore classic is_deleted mechanics

This commit is contained in:
albert
2011-02-12 17:37:48 -05:00
parent 33f5350677
commit f48000a8b5
21 changed files with 204 additions and 371 deletions

View File

@@ -33,6 +33,16 @@ class PostModerationController < ApplicationController
end
end
def delete
@post = Post.find(params[:post_id])
@post.delete!
end
def undelete
@post = Post.find(params[:post_id])
@post.undelete!
end
private
def disapproval_error(e)
respond_to do |format|