Commit 4b392f22fb7d07a8d90095f028bfe184a2f58966

Authored by Rodrigo Souto
1 parent c9d279cd

stoa-api: ensure every field is converted to json

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/noosfero/fields_decorator.rb
... ... @@ -11,6 +11,6 @@ class Noosfero::FieldsDecorator
11 11 end
12 12  
13 13 def fields(field_names = {})
14   - field_names.inject({}) { |result, field| result.merge!(field => self.send(field))}
  14 + field_names.inject({}) { |result, field| result.merge!(field => self.send(field).to_json)}
15 15 end
16 16 end
... ...