X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/43c411ec1441ee1710dc33389d7451f7414a170f..45ff1f04cf0a562b870e18ca13b02d914db6bcb3:/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 b8c74dfa57..ccb88351a7 100644 --- a/apps/workbench/app/models/pipeline_instance.rb +++ b/apps/workbench/app/models/pipeline_instance.rb @@ -16,4 +16,16 @@ class PipelineInstance < ArvadosBase 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