mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
updating adapters to follow new root logic
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
require 'active_model/serializer/adapter/json/fragment_cache'
|
||||
|
||||
module ActiveModel
|
||||
class Serializer
|
||||
class Adapter
|
||||
|
||||
@@ -6,7 +6,6 @@ module ActiveModel
|
||||
class JsonApi < Adapter
|
||||
def initialize(serializer, options = {})
|
||||
super
|
||||
serializer.root = true
|
||||
@hash = { data: [] }
|
||||
|
||||
if fields = options.delete(:fields)
|
||||
|
||||
Reference in New Issue
Block a user