Class: RailsAuditLog::AuditLogEntriesController Private

Inherits:
ApplicationController show all
Defined in:
app/controllers/rails_audit_log/audit_log_entries_controller.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#indexObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



4
5
6
7
8
# File 'app/controllers/rails_audit_log/audit_log_entries_controller.rb', line 4

def index
  set_filters
  @pagy, @entries = pagy(filtered_scope)
  @item_types     = AuditLogEntry.distinct.order(:item_type).pluck(:item_type)
end

#showObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



10
11
12
# File 'app/controllers/rails_audit_log/audit_log_entries_controller.rb', line 10

def show
  @entry = AuditLogEntry.find(params[:id])
end