about summary refs log tree commit diff
path: root/app/controllers/admin/reported_statuses_controller.rb
blob: 7ae420dfef280e840120ecf8f5c572ccce9d7884 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

module Admin
  class ReportedStatusesController < BaseController
    def destroy
      status = Status.find params[:id]

      RemovalWorker.perform_async(status.id)
      redirect_to admin_report_path(report)
    end

    private

    def report
      Report.find(params[:report_id])
    end
  end
end