# frozen_string_literal: true class ModLogsController < ApplicationController skip_authorization_check def index @title = 'Moderation Log' @mod_logs = ModLogPresenter.new(params[:page]) end def show id = params[:id].to_i @title = "Moderation Log Entry #{id}" @entry = ModLogPresenter.transform_audit( Audited::Audit.where("action != 'created' OR auditable_type = 'UserBan'").find(id) ) end end