Sha256: d3cbd154aca3419592170b7444db138edc9c961a730d87be8667d3e7675085b8
Contents?: true
Size: 527 Bytes
Versions: 8
Compression:
Stored size: 527 Bytes
Contents
# frozen_string_literal: true module Helpers module JobHelper class << self def correct_feature?(job_invocation, feature) job_invocation.job_category == ::ForemanLeapp::JOB_CATEGORY && RemoteExecutionFeature.find_by(job_template_id: job_invocation.pattern_template_invocations .pluck(:template_id) .first)&.label == feature end end end end
Version data entries
8 entries across 8 versions & 1 rubygems