Class: Api::V2::PreupgradeReportsController

Inherits:
BaseController
  • Object
show all
Includes:
ApiAuthorizer
Defined in:
app/controllers/api/v2/preupgrade_reports_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



12
13
14
# File 'app/controllers/api/v2/preupgrade_reports_controller.rb', line 12

def index
  @preupgrade_reports = resource_scope_for_index
end

#job_invocationObject



24
25
26
# File 'app/controllers/api/v2/preupgrade_reports_controller.rb', line 24

def job_invocation
  @preupgrade_reports = resource_scope_for_index.where(job_invocation_id: params[:id])
end

#showObject



18
19
20
# File 'app/controllers/api/v2/preupgrade_reports_controller.rb', line 18

def show
  @preupgrade_report = resource_scope.find(params[:id])
end