added post#annihilate, removed stale post_moderation views
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
module Moderator
|
||||
module Post
|
||||
class DisapprovalsController < ApplicationController
|
||||
before_filter :janitor_only
|
||||
|
||||
def create
|
||||
@post = ::Post.find(params[:post_id])
|
||||
@post_disapproval = PostDisapproval.create(:post => @post, :user => CurrentUser.user)
|
||||
if @post_disapproval.errors.any?
|
||||
raise ::Post::DisapprovalError.new(@post_disapproval.errors.full_messages)
|
||||
end
|
||||
|
||||
# js: redirect to dashboard
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user