Merge remote-tracking branch 'origin/master' into 2049-run-job-from-workbench
[arvados.git] / apps / workbench / app / models / pipeline_instance.rb
index 7fe88c62a8b0a28b02664d0aa2984dcf96d7b328..ccb88351a761be86abeda65dec7346b4de76c145 100644 (file)
@@ -1,4 +1,4 @@
-class PipelineInstance < OrvosBase
+class PipelineInstance < ArvadosBase
   attr_accessor :pipeline_template
 
   def update_job_parameters(new_params)
@@ -16,4 +16,16 @@ class PipelineInstance < OrvosBase
       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