blob: 38a5a9fca08e36f30c77ee9c9b9cfd858297a250 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
class Admin::AbuseReportsController < Admin::ApplicationController
def index
@abuse_reports = AbuseReport.order(id: :desc).page(params[:page])
end
def destroy
abuse_report = AbuseReport.find(params[:id])
if params[:remove_user]
abuse_report.user.destroy
end
abuse_report.destroy
render nothing: true
end
end
|