Commit 6dbdae926759ffdefb9678b2c39208279a1057af
Committed by
Rodrigo Souto
1 parent
aff3d549
Exists in
api_tasks
and in
3 other branches
Force hashfy
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
lib/noosfero/api/entity.rb
@@ -14,6 +14,7 @@ class Noosfero::API::Entity < Grape::Entity | @@ -14,6 +14,7 @@ class Noosfero::API::Entity < Grape::Entity | ||
14 | message: objects.message | 14 | message: objects.message |
15 | } | 15 | } |
16 | else | 16 | else |
17 | + data = data.serializable_hash if data.is_a? Noosfero::API::Entity | ||
17 | data.merge ok: true, error: { type: 'Success', message: '' } | 18 | data.merge ok: true, error: { type: 'Success', message: '' } |
18 | end | 19 | end |
19 | else | 20 | else |