Class: Ci::TriggerRequest

Inherits:
ApplicationRecord show all
Extended by:
Gitlab::Ci::Model
Defined in:
app/models/ci/trigger_request.rb

Instance Method Summary collapse

Methods included from Gitlab::Ci::Model

model_name, table_name_prefix

Methods inherited from ApplicationRecord

at_most, id_in, id_not_in, iid_in, pluck_primary_key, primary_key_in, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, underscore, without_order

Instance Method Details

#user_variablesObject


19
20
21
22
23
24
25
# File 'app/models/ci/trigger_request.rb', line 19

def user_variables
  return [] unless variables

  variables.map do |key, value|
    { key: key, value: value, public: false }
  end
end