9587: expose untrash api
[arvados.git] / apps / workbench / app / models / node.rb
index 048ac59a0a94360cc50e7f4bd1ee4cb9d02e908c..8bf98c6decb3865054c6339105c688f2ec89fcf4 100644 (file)
@@ -1,6 +1,8 @@
 class Node < ArvadosBase
-  attr_accessor :object
-  def friendly_link_name
-    self.hostname
+  def self.creatable?
+    false
+  end
+  def friendly_link_name lookup=nil
+    (hostname && !hostname.empty?) ? hostname : uuid
   end
 end