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