lib/cloud_crowd/models/job.rb in documentcloud-cloud-crowd-0.0.1 vs lib/cloud_crowd/models/job.rb in documentcloud-cloud-crowd-0.0.2

- old
+ new

@@ -111,10 +111,10 @@ # A JSON representation of this job includes the statuses of its component # WorkUnits, as well as any completed outputs. def to_json(opts={}) atts = {'id' => self.id, 'status' => self.display_status, 'work_units_remaining' => self.work_units_remaining} - atts.merge!({'output' => JSON.parse(self.outputs)}) if self.outputs + atts.merge!({'outputs' => JSON.parse(self.outputs)}) if self.outputs atts.merge!({'time' => self.time}) if self.time atts.to_json end # When starting a new job, or moving to a new stage, split up the inputs \ No newline at end of file