mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Apply key transforms to keys referenced in values
This commit is contained in:
@@ -80,10 +80,10 @@ module ActiveModelSerializers
|
||||
}
|
||||
},
|
||||
author: 'http://example.com/link_authors/1337',
|
||||
link_authors: 'http://example.com/link_authors',
|
||||
:"link-authors" => 'http://example.com/link_authors',
|
||||
resource: 'http://example.com/resource',
|
||||
posts: 'http://example.com/link_authors/1337/posts',
|
||||
yet_another: 'http://example.com/resource/1337'
|
||||
:"yet-another" => 'http://example.com/resource/1337'
|
||||
}
|
||||
assert_equal(expected, hash[:data][:links])
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user