+ params.require(:report).permit(:details, :category)
+ end
+
+ def issue_params
+ params.require(:report).require(:issue).permit(:reportable_id, :reportable_type)
+ end
+
+ def default_assigned_role
+ case issue_params[:reportable_type]
+ when "Note"
+ "moderator"
+ when "User"
+ case report_params[:category]
+ when "vandal" then "moderator"
+ else "administrator"
+ end
+ else
+ "administrator"
+ end