graph_helper.rb 227 Bytes Edit Raw Blame History 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