2015-09-11 14:41:01 +05:30
|
|
|
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])
|
|
|
|
|
2016-01-14 18:37:52 +05:30
|
|
|
abuse_report.remove_user if params[:remove_user]
|
2015-09-11 14:41:01 +05:30
|
|
|
abuse_report.destroy
|
2016-01-14 18:37:52 +05:30
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
render nothing: true
|
|
|
|
end
|
|
|
|
end
|