03b6108f6f
They were Rails' default and are unnecessarily overridden. Signed-off-by: David Wagner <david@marvid.fr>
19 lines
369 B
Ruby
19 lines
369 B
Ruby
module Ci
|
|
class TriggerRequest < ActiveRecord::Base
|
|
extend Ci::Model
|
|
|
|
belongs_to :trigger
|
|
belongs_to :pipeline, foreign_key: :commit_id
|
|
has_many :builds
|
|
|
|
serialize :variables
|
|
|
|
def user_variables
|
|
return [] unless variables
|
|
|
|
variables.map do |key, value|
|
|
{ key: key, value: value, public: false }
|
|
end
|
|
end
|
|
end
|
|
end
|