Module: Helpers::JobHelper

Defined in:
app/lib/helpers/job_helper.rb

Class Method Summary collapse

Class Method Details

.correct_feature?(job_invocation, feature) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
9
10
# File 'app/lib/helpers/job_helper.rb', line 6

def correct_feature?(job_invocation, feature)
  RemoteExecutionFeature.where(job_template_id: job_invocation.pattern_template_invocations
                                                              .first
                                                              .template_id, label: feature).any?
end