Commit 6dbdae926759ffdefb9678b2c39208279a1057af

Authored by Aurélio A. Heckert
Committed by Rodrigo Souto
1 parent aff3d549

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 14 message: objects.message
15 15 }
16 16 else
  17 + data = data.serializable_hash if data.is_a? Noosfero::API::Entity
17 18 data.merge ok: true, error: { type: 'Success', message: '' }
18 19 end
19 20 else
... ...