refactored post mod queue
This commit is contained in:
10
app/controllers/moderator/post/approvals_controller.rb
Normal file
10
app/controllers/moderator/post/approvals_controller.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
module Moderator
|
||||
module Post
|
||||
class ApprovalsController < ApplicationController
|
||||
def create
|
||||
@post = ::Post.find(params[:post_id])
|
||||
@post.approve!
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user