]> git.arvados.org - arvados.git/blob - apps/workbench/app/helpers/collections_helper.rb
Merge branch '2209-test-limit-offset'
[arvados.git] / apps / workbench / app / helpers / collections_helper.rb
1 module CollectionsHelper
2   def d3ify_links(links)
3     links.collect do |x|
4       {source: x.tail_uuid, target: x.head_uuid, type: x.name}
5     end
6   end
7
8   def self.match(uuid)
9     /^([a-f0-9]{32})(\+[0-9]+)?(\+.*?)?(\/.*)?$/.match(uuid.to_s)
10   end
11 end