Fixes #1121, rename Post#annihilate to Post#expunge
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user