Class: RakeAudit::ExecutionsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- RakeAudit::ExecutionsController
- 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
-
#index ⇒ void
Newest-first, filtered, paginated list of executions.
-
#show ⇒ void
Detail of one execution, looked up by id.
Instance Method Details
#index ⇒ void
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 |
#show ⇒ void
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 |