mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
20 lines
380 B
Ruby
20 lines
380 B
Ruby
module ActiveModel
|
|
class Serializer
|
|
class Adapter
|
|
class FlattenJson < Json
|
|
def serializable_hash(options = {})
|
|
super
|
|
@result
|
|
end
|
|
|
|
private
|
|
|
|
# no-op: FlattenJson adapter does not include meta data, because it does not support root.
|
|
def include_meta(json)
|
|
json
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|