creating flatten_json adapter

This commit is contained in:
João Moura
2015-06-13 15:02:11 -03:00
parent 37114e9d5b
commit 5932da64ef
3 changed files with 20 additions and 6 deletions

View File

@@ -82,7 +82,7 @@ module ActiveModel
end
def root
@options.fetch(:root) { serializer.json_key }
serializer.json_key
end
def include_meta(json)