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