pipeline_name = self.name
if pipeline_name.nil? or pipeline_name.empty?
template = PipelineTemplate.where(uuid: self.pipeline_template_uuid).first
- template.name if template else self.uuid
+ if template
+ template.name
+ else
+ self.uuid
+ end
else
pipeline_name
end
end
def attribute_editable? attr, *args
- super && (attr.to_sym == :name ||
+ super && (attr.to_sym == :name || attr.to_sym == :description ||
(attr.to_sym == :components and
(self.state == 'New' || self.state == 'Ready')))
end
"\"#{input_name.to_s}\" parameter for #{component[:script]} script in #{component_name} component"
end
end
+
+ def textile_attributes
+ [ 'description' ]
+ end
end