X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a01f0a9b9860ca574e0078a0e95afb783e711dc1..0b4f867ef14af38c07b910643fbe8cc6a93e6bb6:/apps/workbench/app/models/pipeline_instance.rb diff --git a/apps/workbench/app/models/pipeline_instance.rb b/apps/workbench/app/models/pipeline_instance.rb index aad7cfc4cc..5a88003f82 100644 --- a/apps/workbench/app/models/pipeline_instance.rb +++ b/apps/workbench/app/models/pipeline_instance.rb @@ -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