mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
commit
d34069b6ae
@ -25,6 +25,8 @@ Misc:
|
|||||||
|
|
||||||
- [#1878](https://github.com/rails-api/active_model_serializers/pull/1878) Cache key generation for serializers now uses `ActiveSupport::Cache.expand_cache_key` instead of `Array#join` by default and is also overridable. This change should be backward-compatible. (@markiz)
|
- [#1878](https://github.com/rails-api/active_model_serializers/pull/1878) Cache key generation for serializers now uses `ActiveSupport::Cache.expand_cache_key` instead of `Array#join` by default and is also overridable. This change should be backward-compatible. (@markiz)
|
||||||
|
|
||||||
|
- [#1799](https://github.com/rails-api/active_model_serializers/pull/1799) Add documentation for setting the adapter. (@ScottKbka)
|
||||||
|
|
||||||
### [v0.10.2 (2016-07-05)](https://github.com/rails-api/active_model_serializers/compare/v0.10.1...v0.10.2)
|
### [v0.10.2 (2016-07-05)](https://github.com/rails-api/active_model_serializers/compare/v0.10.1...v0.10.2)
|
||||||
|
|
||||||
Fixes:
|
Fixes:
|
||||||
|
|||||||
@ -82,7 +82,11 @@ See [Fields](fields.md) for more information.
|
|||||||
|
|
||||||
#### adapter
|
#### adapter
|
||||||
|
|
||||||
PR please :)
|
This option lets you explicitly set the adapter to be used by passing a registered adapter. Your options are `:attributes`, `:json`, and `:json_api`.
|
||||||
|
|
||||||
|
```
|
||||||
|
ActiveModel::Serializer.config.adapter = :json_api
|
||||||
|
```
|
||||||
|
|
||||||
#### key_transform
|
#### key_transform
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
module ActiveModel
|
module ActiveModel
|
||||||
class Serializer
|
class Serializer
|
||||||
# This class hold all information about serializer's association.
|
# This class holds all information about serializer's association.
|
||||||
#
|
#
|
||||||
# @attr [Symbol] name
|
# @attr [Symbol] name
|
||||||
# @attr [Hash{Symbol => Object}] options
|
# @attr [Hash{Symbol => Object}] options
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user