summaryrefslogtreecommitdiff
path: root/app/controllers/admin/abuse_reports_controller.rb
blob: 34f37bca4adaee9d9a4f5fab0a3f59a4fab09020 (plain)
1
2
3
4
5
6
7
8
9
10
11
class Admin::AbuseReportsController < Admin::ApplicationController
  def index
    @abuse_reports = AbuseReport.order(id: :desc).page(params[:page])
  end

  def destroy
    AbuseReport.find(params[:id]).destroy

    redirect_to admin_abuse_reports_path, notice: 'Report was removed'
  end
end