3193: updated the vm section based on Tom's suggestion: let's skip the 'last login...
[arvados.git] / apps / workbench / app / models / pipeline_instance.rb
index 3e9eda2cf82e33abd995b9f293d87319f7e63a74..c3b14755f3fb6f8dbdf77d3630e689797cca8eea 100644 (file)
@@ -1,7 +1,7 @@
 class PipelineInstance < ArvadosBase
   attr_accessor :pipeline_template
 
-  def self.goes_in_folders?
+  def self.goes_in_projects?
     true
   end
 
@@ -30,9 +30,9 @@ class PipelineInstance < ArvadosBase
   end
   
   def attribute_editable? attr, *args
-    super(attr, *args) && (attr.to_sym == :name ||
-                           (attr.to_sym == :components and
-                            (self.state == 'New' || self.state == 'Ready')))
+    super && (attr.to_sym == :name ||
+              (attr.to_sym == :components and
+               (self.state == 'New' || self.state == 'Ready')))
   end
 
   def attributes_for_display