active_model_serializers/test
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
..
action_controller Properly deserialize dasherized keys 2016-03-29 22:46:01 +02:00
active_model_serializers Add missing object context needed for tests to be run alone 2016-03-24 22:20:42 -05:00
adapter Fix warnings 2016-03-25 10:28:13 -05:00
benchmark Add rails_version to output 2016-03-13 14:29:29 -05:00
fixtures Include Serializer._type in collection serializer json_key cascade 2016-03-27 10:55:31 -05:00
generators Only load generators when needed 2016-01-15 01:52:27 -06:00
include_tree Favor ActiveSupport::TestCase over Minitest::Test 2015-12-22 10:35:51 -06:00
serializers Separate enabling of caching and setting the cache store 2016-03-24 22:20:42 -05:00
support Merge pull request #1435 from bf4/fix_rails_warnings 2016-03-15 13:42:51 -06:00
active_record_test.rb Favor ActiveSupport::TestCase over Minitest::Test 2015-12-22 10:35:51 -06:00
adapter_test.rb Moved the adapter and adapter folder to active_model_serializers folder and changed the module namespace 2016-02-23 21:49:58 -06:00
array_serializer_test.rb Add a deprecation DSL 2016-03-07 01:07:06 -06:00
cache_test.rb Separate enabling of caching and setting the cache store 2016-03-24 22:20:42 -05:00
collection_serializer_test.rb Include Serializer._type in collection serializer json_key cascade 2016-03-27 10:55:31 -05:00
grape_test.rb Rubocop autocorrect 2016-03-08 22:32:34 +01:00
lint_test.rb RFC: Json Api Errors (WIP) 2016-03-06 12:03:14 -06:00
logger_test.rb Favor ActiveSupport::TestCase over Minitest::Test 2015-12-22 10:35:51 -06:00
poro_test.rb Favor ActiveSupport::TestCase over Minitest::Test 2015-12-22 10:35:51 -06:00
serializable_resource_test.rb Collapse JSON API success/failure documents in one adapter 2016-03-06 12:03:17 -06:00
test_helper.rb Remove annoying progress reporter 2016-03-26 19:27:33 -05:00