active_model_serializers/test/action_controller
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
..
json Refactors of the Attribute adapter. Adds support for nested associations specified from the include key in the controller. Adds some tests and some method documentation 2015-09-21 10:35:47 -04:00
json_api Properly deserialize dasherized keys 2016-03-29 22:46:01 +02:00
adapter_selector_test.rb Rubocop autocorrect 2016-03-08 22:32:34 +01:00
explicit_serializer_test.rb Rubocop: Consistent spacing 2015-09-03 20:51:40 -05:00
serialization_scope_name_test.rb Differentiate exception behavior in Rails 4.0 vs. others 2016-03-12 19:59:43 -06:00
serialization_test.rb Add missing object context needed for tests to be run alone 2016-03-25 00:20:10 -05:00