Do not require Ci config node to have a hash value

This commit is contained in:
Grzegorz Bizon
2016-06-09 12:35:24 +02:00
parent 6a319fd287
commit 20ccd4465b
2 changed files with 8 additions and 4 deletions
@@ -5,6 +5,14 @@ module Gitlab
module Configurable
extend ActiveSupport::Concern
def initialize(*)
super
unless leaf? || has_config?
@errors << 'should be a configuration entry with hash value'
end
end
def keys
self.class.nodes || {}
end
-4
View File
@@ -13,10 +13,6 @@ module Gitlab
@parent = parent
@nodes = {}
@errors = []
unless leaf? || has_config?
@errors << 'should be a configuration entry with hash value'
end
end
def process!