Class: Ductwork::StepErrorsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/ductwork/step_errors_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



5
6
7
8
9
10
11
12
# File 'app/controllers/ductwork/step_errors_controller.rb', line 5

def index
  @step_errors = query_step_errors
  @klasses = Ductwork::Result
             .failure
             .joins(execution: { job: :step })
             .group("ductwork_steps.klass")
             .pluck("ductwork_steps.klass")
end