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
|