summaryrefslogtreecommitdiff
path: root/app/models/concerns/ci/raw_variable.rb
blob: 5cfc781c9f16a272ae8adb43b2d793baa416c62f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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