mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
Merge pull request #1048 from bf4/cleanup_meta_in_adapter
Let FlattenJson adapter decide it doesn't include meta
This commit is contained in:
@@ -6,6 +6,13 @@ module ActiveModel
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user