From 53a2c9a985c6d4b95fee42c8a462dae3bb67de89 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Thu, 21 Jul 2016 18:27:12 -0300 Subject: [PATCH] api: expose accept/reject attributes from task --- app/api/entities.rb | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/app/api/entities.rb b/app/api/entities.rb index 50e9b1a..a90f244 100644 --- a/app/api/entities.rb +++ b/app/api/entities.rb @@ -267,6 +267,10 @@ module Api expose :status expose :created_at expose :data + expose :accept_details + expose :reject_details + expose :accept_disabled?, as: :accept_disabled + expose :reject_disabled?, as: :reject_disabled 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