Class: Api::V2::PreupgradeReportsController
- Inherits:
-
BaseController
- Object
- BaseController
- Api::V2::PreupgradeReportsController
- Includes:
- ApiAuthorizer
- Defined in:
- app/controllers/api/v2/preupgrade_reports_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
12 13 14 |
# File 'app/controllers/api/v2/preupgrade_reports_controller.rb', line 12 def index @preupgrade_reports = resource_scope_for_index end |
#job_invocation ⇒ Object
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 |
#show ⇒ Object
18 19 20 |
# File 'app/controllers/api/v2/preupgrade_reports_controller.rb', line 18 def show @preupgrade_report = resource_scope.find(params[:id]) end |