From 8cbb739aca48bdb780326be3936f8a4790cb79c0 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Wed, 20 Jul 2016 13:57:37 -0300 Subject: [PATCH] api: expose task data --- app/api/entities.rb | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/app/api/entities.rb b/app/api/entities.rb index dec30e2..50e9b1a 100644 --- a/app/api/entities.rb +++ b/app/api/entities.rb @@ -266,6 +266,7 @@ module Api expose :requestor, using: Profile expose :status expose :created_at + expose :data expose :target do |task, options| type_map = {Profile => ::Profile, Environment => ::Environment}.find {|h| task.target.kind_of?(h.last)} type_map.first.represent(task.target) unless type_map.nil? -- libgit2 0.21.2