mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
Use symbol for root in jsonapi, fix tests
This commit is contained in:
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user