mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
creating flatten_json adapter
This commit is contained in:
@@ -37,11 +37,7 @@ module ActiveModel
|
||||
@result = @core.merge @hash
|
||||
end
|
||||
|
||||
if root
|
||||
@result = { root => @result }
|
||||
else
|
||||
@result
|
||||
end
|
||||
{ root => @result }
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user