1 class PipelineInvocation < ActiveRecord::Base
3 serialize :components, Hash
4 belongs_to :pipeline, :foreign_key => :pipeline_uuid, :primary_key => :uuid
6 before_validation :bootstrap_components
9 def bootstrap_components
10 if pipeline and (!components or components.empty?)
11 self.components = pipeline.components