diff options
Diffstat (limited to 'app/controllers/admin/reported_statuses_controller.rb')
-rw-r--r-- | app/controllers/admin/reported_statuses_controller.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/controllers/admin/reported_statuses_controller.rb b/app/controllers/admin/reported_statuses_controller.rb new file mode 100644 index 000000000..7ae420dfe --- /dev/null +++ b/app/controllers/admin/reported_statuses_controller.rb @@ -0,0 +1,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 |