Sha256: 4d923250a5e454873e3c94e0336c4c1c643a73e3c4c0c5798fde36caa23aa3c7

Contents?: true

Size: 504 Bytes

Versions: 8

Compression:

Stored size: 504 Bytes

Contents

module Admin
  class LogsController < ApplicationController
    before_action(:authenticate_user!) if defined?(Devise)
    before_action { EffectiveResources.authorize!(self, :admin, :effective_logging) }

    include Effective::CrudController
    skip_log_page_views

    resource_scope -> { EffectiveLogging.Log.deep.all }
    datatable -> { Admin::EffectiveLogsDatatable.new }

    if (config = EffectiveLogging.layout)
      layout(config.kind_of?(Hash) ? config[:admin] : config)
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
effective_logging-4.3.1 app/controllers/admin/logs_controller.rb
effective_logging-4.3.0 app/controllers/admin/logs_controller.rb
effective_logging-4.2.0 app/controllers/admin/logs_controller.rb
effective_logging-4.1.3 app/controllers/admin/logs_controller.rb
effective_logging-4.1.2 app/controllers/admin/logs_controller.rb
effective_logging-4.1.1 app/controllers/admin/logs_controller.rb
effective_logging-4.1.0 app/controllers/admin/logs_controller.rb
effective_logging-4.0.0 app/controllers/admin/logs_controller.rb