Improve API server's git rev-list calls.
[arvados.git] / apps / workbench / app / models / link.rb
1 class Link < ArvadosBase
2   attr_accessor :head
3   attr_accessor :tail
4   def self.by_tail(t, opts={})
5     where(opts.merge :tail_uuid => t.uuid)
6   end
7
8   def default_name
9     self.class.resource_class_for_uuid(head_uuid).default_name rescue super
10   end
11 end