add api template for pipeline_invocation
authorTom Clegg <tom@clinicalfuture.com>
Mon, 14 Jan 2013 22:26:25 +0000 (14:26 -0800)
committerTom Clegg <tom@clinicalfuture.com>
Mon, 14 Jan 2013 22:26:25 +0000 (14:26 -0800)
app/models/pipeline_invocation.rb

index 98b5494461a102d14859be8ee3e5e3b41932900f..8eb99cb17f6222df6b0f8469165015a0005feda2 100644 (file)
@@ -1,11 +1,21 @@
 class PipelineInvocation < ActiveRecord::Base
   include AssignUuid
+  include KindAndEtag
+  include CommonApiTemplate
   serialize :components, Hash
   belongs_to :pipeline, :foreign_key => :pipeline_uuid, :primary_key => :uuid
 
   before_validation :bootstrap_components
   before_validation :update_success
 
+  api_accessible :superuser, :extend => :common do |t|
+    t.add :pipeline_uuid
+    t.add :name
+    t.add :components
+    t.add :success
+    t.add :active
+  end
+
   def progress_table
     begin
       # v0 pipeline format