mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Mutate hash while building it
This commit is contained in:
parent
155e99cedc
commit
13340790c5
@ -324,7 +324,7 @@ module AMS
|
|||||||
{
|
{
|
||||||
id: id.to_s,
|
id: id.to_s,
|
||||||
type: type
|
type: type
|
||||||
}.merge({
|
}.merge!({
|
||||||
attributes: attributes,
|
attributes: attributes,
|
||||||
relationships: relations,
|
relationships: relations,
|
||||||
links: resource_links_object
|
links: resource_links_object
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user