Fixes #1121, rename Post#annihilate to Post#expunge

This commit is contained in:
albert
2013-04-08 13:44:43 -04:00
parent 9a337346df
commit c540c4f891
10 changed files with 98 additions and 52 deletions

View File

@@ -2,7 +2,7 @@ module Moderator
module Post
class PostsController < ApplicationController
before_filter :janitor_only, :only => [:delete, :undelete]
before_filter :admin_only, :only => [:annihilate]
before_filter :admin_only, :only => [:expunge]
rescue_from ::PostFlag::Error, :with => :rescue_exception
def confirm_delete
@@ -23,9 +23,9 @@ module Moderator
@post.undelete!
end
def annihilate
def expunge
@post = ::Post.find(params[:id])
@post.annihilate!
@post.expunge!
end
end
end