debian-mirror-gitlab/app/models/concerns/ci/raw_variable.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
270 B
Ruby
Raw Normal View History

2023-01-13 00:05:48 +05:30
# frozen_string_literal: true
module Ci
module RawVariable
extend ActiveSupport::Concern
included do
validates :raw, inclusion: { in: [true, false] }
end
private
def uncached_runner_variable
super.merge(raw: raw?)
end
end
end