mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-24 23:06:50 +00:00
Add serialization docs PR request note for conditional attributes
This commit is contained in:
parent
2f74dd9682
commit
dde843d162
@ -34,6 +34,8 @@ Serialization of the resource `title`
|
|||||||
| `attribute :title { 'A Different Title'}` | `{ title: 'A Different Title' } `
|
| `attribute :title { 'A Different Title'}` | `{ title: 'A Different Title' } `
|
||||||
| `attribute :title`<br>`def title 'A Different Title' end` | `{ title: 'A Different Title' }`
|
| `attribute :title`<br>`def title 'A Different Title' end` | `{ title: 'A Different Title' }`
|
||||||
|
|
||||||
|
[PR please for conditional attributes:)](https://github.com/rails-api/active_model_serializers/pull/1403)
|
||||||
|
|
||||||
### Associations
|
### Associations
|
||||||
|
|
||||||
#### ::has_one
|
#### ::has_one
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user