Files
danbooru/app/controllers/moderator/post/approvals_controller.rb

14 lines
275 B
Ruby

module Moderator
module Post
class ApprovalsController < ApplicationController
before_filter :janitor_only
def create
@post = ::Post.find(params[:post_id])
@post.approve!
rescue ::Post::ApprovalError
end
end
end
end