mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
force to use flattenJson when dealing with ArraySerializer
This commit is contained in:
parent
b2f1947d4a
commit
8e1214b4c5
@ -6,7 +6,7 @@ module ActiveModel
|
||||
class Json < Adapter
|
||||
def serializable_hash(options = {})
|
||||
if serializer.respond_to?(:each)
|
||||
@result = serializer.map{|s| self.class.new(s).serializable_hash }
|
||||
@result = serializer.map{|s| FlattenJson.new(s).serializable_hash }
|
||||
else
|
||||
@hash = {}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user