Commit 99dddac5 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Simplify ci config entry validator implementation

parent 946e8d3a
...@@ -24,16 +24,11 @@ module Gitlab ...@@ -24,16 +24,11 @@ module Gitlab
private private
def location def location
predecessors = ancestors.map(&:key).compact ancestors.map(&:key).compact.append(key_name).join(':')
predecessors.append(key_name).join(':')
end end
def key_name def key_name
if key.blank? key.presence || @entry.class.name.to_s.demodulize.underscore.humanize
@entry.class.name.to_s.demodulize.underscore.humanize
else
key
end
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment