You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
334 B

  1. # frozen_string_literal: true
  2. module Admin
  3. class ReportedStatusesController < BaseController
  4. def destroy
  5. status = Status.find params[:id]
  6. RemovalWorker.perform_async(status.id)
  7. redirect_to admin_report_path(report)
  8. end
  9. private
  10. def report
  11. Report.find(params[:report_id])
  12. end
  13. end
  14. end