Commit 56eb1e8b03d80b5d8672c107606f8fe8d271afd2
1 parent
02223aae
Exists in
master
and in
28 other branches
Revert "stoa-api: ensure every field is converted to json"
This reverts commit 4b392f22fb7d07a8d90095f028bfe184a2f58966. This is not necessary since a to_json is already happening on top level.
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).to_json)} | |
| 14 | + field_names.inject({}) { |result, field| result.merge!(field => self.send(field))} | |
| 15 | 15 | end |
| 16 | 16 | end | ... | ... |