Fixes PipelineInstancesControllerTest. application_controller#create now does
[arvados.git] / apps / workbench / app / models / pipeline_instance.rb
index aad7cfc4cc9858e837505cc85f7eb5a5a118c212..5a88003f8281199547431ca8051eea980c0a9d0f 100644 (file)
@@ -21,9 +21,10 @@ class PipelineInstance < ArvadosBase
     end
   end
   
-  def attribute_editable?(attr)
-    attr && (attr.to_sym == :name ||
-            (attr.to_sym == :components and (self.state == 'New' || self.state == 'Ready')))
+  def attribute_editable? attr, *args
+    super && (attr.to_sym == :name ||
+              (attr.to_sym == :components and
+               (self.state == 'New' || self.state == 'Ready')))
   end
 
   def attributes_for_display