class Ditty::AuditLogsController
Constants
- FILTERS
- SEARCHABLE
Public Instance Methods
action_options()
click to toggle source
# File lib/ditty/controllers/audit_logs_controller.rb, line 22 def action_options policy_scope(::Ditty::AuditLog).as_hash(:action, :action) end
list()
click to toggle source
Calls superclass method
# File lib/ditty/controllers/audit_logs_controller.rb, line 27 def list return super if params[:sort] super.order(:created_at).reverse end
user_options()
click to toggle source
# File lib/ditty/controllers/audit_logs_controller.rb, line 18 def user_options policy_scope(::Ditty::User).as_hash(:email, :email) end