Class: Ditty::AuditLogsController

Inherits:
ComponentController show all
Defined in:
lib/ditty/controllers/audit_logs_controller.rb

Constant Summary collapse

SEARCHABLE =
%i[details platform device browser ip_address].freeze
FILTERS =
[
  { name: :user, field: 'user.email' },
  { name: :action }
].freeze

Instance Method Summary collapse

Methods inherited from ComponentController

#read, #read!, #skip_verify!, #trigger

Methods inherited from ApplicationController

#find_template, #view_folders

Instance Method Details

#listObject



27
28
29
# File 'lib/ditty/controllers/audit_logs_controller.rb', line 27

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