Class: Ditty::AuditLogs

Inherits:
Component show all
Defined in:
lib/ditty/controllers/audit_logs.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 Component

#read, #skip_verify!, #trigger

Methods inherited from Application

#find_template, #view_folders

Instance Method Details

#listObject



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

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