let pipeline_invocation#active be a regular attribute
authorTom Clegg <tom@clinicalfuture.com>
Sun, 17 Feb 2013 21:33:30 +0000 (13:33 -0800)
committerTom Clegg <tom@clinicalfuture.com>
Sun, 17 Feb 2013 21:33:30 +0000 (13:33 -0800)
app/models/pipeline_invocation.rb

index 1c79182414b57ea301c87e8d944e75958631edd9..c355056d348b7a9d69290b7cfa3f09f579206f7e 100644 (file)
@@ -59,10 +59,6 @@ class PipelineInvocation < OrvosModel
     t.collect { |r| r[2] }.inject(0.0) { |sum,a| sum += a } / t.size
   end
 
-  def active
-    success.nil? and modified_at and Time.now - modified_at < 5.minutes
-  end
-
   protected
   def bootstrap_components
     if pipeline and (!components or components.empty?)