Class: RakeAudit::ExecutionsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/rake_audit/executions_controller.rb

Overview

Lists recorded task executions (with filtering + pagination) and shows the detail of a single execution. All data access is delegated to web_adapter so the controller is backend-agnostic (ActiveRecord, Redis, Mongo, …).

Instance Method Summary collapse

Instance Method Details

#indexvoid

This method returns an undefined value.

Newest-first, filtered, paginated list of executions.



11
12
13
# File 'app/controllers/rake_audit/executions_controller.rb', line 11

def index
  @executions = web_adapter.query(filters: filter_params, page: params[:page])
end

#showvoid

This method returns an undefined value.

Detail of one execution, looked up by id.



18
19
20
# File 'app/controllers/rake_audit/executions_controller.rb', line 18

def show
  @execution = web_adapter.find(params[:id])
end