Class: Ditty::AuditLogs
- Inherits:
-
Component
- Object
- Sinatra::Base
- Application
- Component
- Ditty::AuditLogs
- Defined in:
- lib/ditty/controllers/audit_logs.rb
Constant Summary collapse
- FILTERS =
[ { name: :user, field: 'user.email' }, { name: :action } ].freeze
Instance Method Summary collapse
Methods inherited from Component
Instance Method Details
#find_template(views, name, engine, &block) ⇒ Object
26 27 28 29 |
# File 'lib/ditty/controllers/audit_logs.rb', line 26 def find_template(views, name, engine, &block) super(views, name, engine, &block) # Root super(::Ditty::App.view_folder, name, engine, &block) # Ditty end |
#list ⇒ Object
31 32 33 |
# File 'lib/ditty/controllers/audit_logs.rb', line 31 def list super.order(:created_at).reverse end |