Welcome to mirror list, hosted at ThFree Co, Russian Federation.

graph_helper.rb « helpers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 369330151f47a84584ef8972e31694d291948c49 (plain)
1
2
3
4
5
6
7
8
9
10
module GraphHelper
  def join_with_space(ary)
    ary.collect{|r|r.name}.join(" ") unless ary.nil?
  end

  def parents_zip_spaces(parents, parent_spaces)
    ids = parents.map { |p| p.id }
    ids.zip(parent_spaces)
  end
end