mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Update README to write how to configure adapter (#1758)
This commit is contained in:
parent
f48fd2a327
commit
4f085441bd
@ -96,6 +96,12 @@ Thanks!
|
||||
|
||||
## High-level behavior
|
||||
|
||||
Choose an adapter from [adapters](lib/active_model_serializers/adapter):
|
||||
|
||||
``` ruby
|
||||
ActiveModelSerializers.config.adapter = :json_api # Default: `:attributes`
|
||||
```
|
||||
|
||||
Given a [serializable model](lib/active_model/serializer/lint.rb):
|
||||
|
||||
```ruby
|
||||
|
||||
Loading…
Reference in New Issue
Block a user