Use symbol for root in jsonapi, fix tests

This commit is contained in:
Mateo Murphy
2015-03-19 14:14:27 -04:00
parent 3ba4386bda
commit da86747a3e
11 changed files with 21 additions and 21 deletions

View File

@@ -16,7 +16,7 @@ module ActiveModel
end
def serializable_hash(options = {})
@root = 'data'
@root = :data
if serializer.respond_to?(:each)
@hash[@root] = serializer.map do |s|