Commit be99f824 authored by James Lopez's avatar James Lopez

started refactoring reader

parent 8ff9fc55
...@@ -18,7 +18,9 @@ module Gitlab ...@@ -18,7 +18,9 @@ module Gitlab
attributes = @attributes_finder.find(:project) attributes = @attributes_finder.find(:project)
project_attributes = attributes.is_a?(Hash) ? attributes[:project] : {} project_attributes = attributes.is_a?(Hash) ? attributes[:project] : {}
project_attributes.merge(include: build_hash(@tree)) build_hash(@tree).each do |sub_hash|
yield(project_attributes.merge(include: sub_hash))
end
rescue => e rescue => e
@shared.error(e) @shared.error(e)
false false
......
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