Commit 8cbb739aca48bdb780326be3936f8a4790cb79c0

Authored by Victor Costa
Committed by Leandro Santos
1 parent da591cc0
Exists in fix_sign_up_form

api: expose task data

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
app/api/entities.rb
... ... @@ -266,6 +266,7 @@ module Api
266 266 expose :requestor, using: Profile
267 267 expose :status
268 268 expose :created_at
  269 + expose :data
269 270 expose :target do |task, options|
270 271 type_map = {Profile => ::Profile, Environment => ::Environment}.find {|h| task.target.kind_of?(h.last)}
271 272 type_map.first.represent(task.target) unless type_map.nil?
... ...