X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8cc28c45ca3da20e9d66aabbaf43de777c582a84..6d3636939f60a96d8ede920fec474079d713c7e1:/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 beeba62585..c3b14755f3 100644 --- a/apps/workbench/app/models/pipeline_instance.rb +++ b/apps/workbench/app/models/pipeline_instance.rb @@ -1,7 +1,7 @@ class PipelineInstance < ArvadosBase attr_accessor :pipeline_template - def self.goes_in_folders? + def self.goes_in_projects? true end @@ -29,9 +29,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