JSON type fields are converted in plain string
did
committed Dec 08, 2016
commit c9f0f9a862d2932d89f7a8559e052028558fa99d
Showing 1
changed file with
4 additions
and 0 deletions
locomotive/wagon/decorators/content_entry_decorator.rb b/lib/locomotive/wagon/decorators/content_entry_decorator.rb
+4
-0
| @@ | @@ -53,6 +53,10 @@ module Locomotive |
| value.try(:iso8601) | |
| end | |
| + | def decorate_json_field(value) |
| + | value.to_json |
| + | end |
| + | |
| alias :decorate_time_field :decorate_date_time_field | |
| def to_hash | |