active_model_serializers/test/action_controller/json_api
Moritz Lawitschka afe786d19a Properly deserialize dasherized keys
The JSON API adapater dasherizes every key, but the deserializer left the keys
unaltered. Thus, the client had to send underscored keys in the request body in
order for Rails to properly match sent values to model attributes.

This commit adds automatic key transformation on deserialization. Per default the
deserializer transforms the keys to underscore, but this behaviour can also be
changed by including `key_transform` in the deserializer options.
2016-03-29 22:46:01 +02:00
..
deserialization_test.rb Properly deserialize dasherized keys 2016-03-29 22:46:01 +02:00
errors_test.rb Collapse JSON API success/failure documents in one adapter 2016-03-06 12:03:17 -06:00
key_transform_test.rb Provide key case translation 2016-03-15 12:21:10 -06:00
linked_test.rb Spike Jsonapi Renderer registration 2016-03-28 22:04:16 -05:00
pagination_test.rb Rubocop autocorrect 2016-03-08 22:32:34 +01:00