Return CI entry config as value by default

This commit is contained in:
Grzegorz Bizon 2016-06-21 13:12:58 +02:00
parent d399128955
commit 97ec24f0b0
4 changed files with 3 additions and 14 deletions

View File

@ -9,7 +9,8 @@ module Gitlab
class InvalidError < StandardError; end
attr_reader :config
attr_accessor :key, :description
attr_accessor :description
attr_writer :key
def initialize(config)
@config = config
@ -48,7 +49,7 @@ module Gitlab
end
def value
raise NotImplementedError
@config
end
def self.nodes

View File

@ -11,10 +11,6 @@ module Gitlab
validations do
validates :config, type: String
end
def value
@config
end
end
end
end

View File

@ -11,10 +11,6 @@ module Gitlab
validations do
validates :config, array_of_strings: true
end
def value
@config
end
end
end
end

View File

@ -11,10 +11,6 @@ module Gitlab
validations do
validates :config, array_of_strings: true
end
def value
@config
end
end
end
end