updating adapters to follow new root logic

This commit is contained in:
João Moura
2015-06-14 03:25:20 -03:00
parent a0753cb0bc
commit 2bf91a0c0e
3 changed files with 1 additions and 4 deletions

View File

@@ -1,5 +1,3 @@
require 'active_model/serializer/adapter/json/fragment_cache'
module ActiveModel
class Serializer
class Adapter

View File

@@ -6,7 +6,6 @@ module ActiveModel
class JsonApi < Adapter
def initialize(serializer, options = {})
super
serializer.root = true
@hash = { data: [] }
if fields = options.delete(:fields)