Merge branch '2246-fix-git-clone-race'
[arvados.git] / apps / workbench / app / models / pipeline_instance.rb
index b8c74dfa57ce739cd9014eb57d139d0a4a1404d3..ccb88351a761be86abeda65dec7346b4de76c145 100644 (file)
@@ -16,4 +16,16 @@ class PipelineInstance < ArvadosBase
       end
     end
   end
+  
+  def attribute_editable?(attr)
+    attr.to_sym == :name || (attr.to_sym == :components and self.active == nil)
+  end
+
+  def attributes_for_display
+    super.reject { |k,v| k == 'components' }
+  end
+
+  def self.creatable?
+    false
+  end
 end