refactored post mod queue
This commit is contained in:
15
app/controllers/moderator/post/posts_controller.rb
Normal file
15
app/controllers/moderator/post/posts_controller.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
module Moderator
|
||||
module Post
|
||||
class PostsController < ApplicationController
|
||||
def delete
|
||||
@post = ::Post.find(params[:id])
|
||||
@post.delete!
|
||||
end
|
||||
|
||||
def undelete
|
||||
@post = ::Post.find(params[:id])
|
||||
@post.undelete!
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user