Class: Ditty::AuditLogs
- Inherits:
-
Component
- Object
- Sinatra::Base
- Application
- Component
- Ditty::AuditLogs
- 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
Instance Method Details
#list ⇒ Object
27 28 29 |
# File 'lib/ditty/controllers/audit_logs.rb', line 27 def list super.order(:created_at).reverse end |