Sha256: 5f8e84e236463315eaab0ad23501eb36fb8b85b8b66c40f077a7ebb886cf08bc
Contents?: true
Size: 560 Bytes
Versions: 1
Compression:
Stored size: 560 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 if (config = EffectiveLogging.layout) layout(config.kind_of?(Hash) ? config[:admin] : config) end def index EffectiveResources.authorize!(self, :index, Effective::Log) @datatable = EffectiveLogsDatatable.new(self) @page_title = 'Logs' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
effective_logging-3.1.1 | app/controllers/admin/logs_controller.rb |