active_model_serializers/docs/general
Ian C. Anderson 2423ca4999 Support key transformation for Attributes adapter (#1889)
The `:attributes` adapter is the default one, but it did not support
key transformation. This was very surprising behavior, since the
"Configuration Options" page in the guides didn't mention that this
behavior was not supported by the attributes adapter.

This commit adds key transform support to the attributes adapter, and
adds documentation about the default transform for the attributes
adapter (which is `:unaltered`).

This commit also handles arrays when transforming keys, which was needed
in the case where you're serializing a collection with the Attributes
adapter. With the JSON adapter, it was always guaranteed to pass a hash
to the KeyTransform functions because of the top-level key. Since there
is no top-level key for the Attributes adapter, the return value could
be an array.
2016-08-25 15:21:27 -04:00
..
adapters.md [skip ci] Fix root key documentation (#1761) 2016-05-31 13:30:47 -06:00
caching.md Add warning in caching documentation 2016-08-04 17:17:00 +01:00
configuration_options.md Support key transformation for Attributes adapter (#1889) 2016-08-25 15:21:27 -04:00
deserialization.md Fix docs for deserialization (#1768) 2016-06-01 16:50:15 -04:00
fields.md Add docs for the fields option 2016-06-24 07:09:21 +02:00
getting_started.md #1594 - Document generator's auto-extending of (if it exists) 2016-04-02 13:18:07 -04:00
instrumentation.md Moved the adapter and adapter folder to active_model_serializers folder and changed the module namespace 2016-02-23 21:49:58 -06:00
key_transforms.md Apply key transforms to keys referenced in values 2016-04-04 10:16:04 -06:00
logging.md Fix grammar per duduribeiro [ci skip] 2015-12-15 21:34:25 -06:00
rendering.md Add docs for the fields option 2016-06-24 07:09:21 +02:00
serializers.md Add doc for setting conditional serialization_scope 2016-06-30 17:14:58 +05:30