Sha256: 40236773c7c133eb98b64606c6dfaa420e94c6a6455ebca452fc4cd4bdc6546d

Contents?: true

Size: 738 Bytes

Versions: 2

Compression:

Stored size: 738 Bytes

Contents

# frozen_string_literal: true

require 'proxes/controllers/component'
require 'proxes/models/audit_log'
require 'proxes/policies/audit_log_policy'

module ProxES
  class AuditLogs < Component
    set model_class: AuditLog

    def find_template(views, name, engine, &block)
      super(views, name, engine, &block) # Root
      super(::ProxES::ProxES.view_folder, name, engine, &block) # Basic Plugin
    end

    def list
      super.order(:created_at).reverse
    end

    get '/new' do
      halt 404
    end

    post '/' do
      halt 404
    end

    get '/:id' do
      halt 404
    end

    get '/:id/edit' do
      halt 404
    end

    put '/:id' do
      halt 404
    end

    delete '/:id' do
      halt 404
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
proxes-0.7.1 lib/proxes/controllers/audit_logs.rb
proxes-0.7.0 lib/proxes/controllers/audit_logs.rb