Skip to content

Commit

Permalink
Merge pull request #1799 from ScottKbka/patch-1
Browse files Browse the repository at this point in the history
Update rendering.md
  • Loading branch information
bf4 authored Aug 31, 2016
2 parents 9aaaa73 + 7178b9d commit d34069b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

- [#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)

Fixes:
Expand Down
6 changes: 5 additions & 1 deletion docs/general/rendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ See [Fields](fields.md) for more information.

#### 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

Expand Down
2 changes: 1 addition & 1 deletion lib/active_model/serializer/association.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module ActiveModel
class Serializer
# This class hold all information about serializer's association.
# This class holds all information about serializer's association.
#
# @attr [Symbol] name
# @attr [Hash{Symbol => Object}] options
Expand Down

0 comments on commit d34069b

Please sign in to comment.