Document inclusion of belongs_to ActiveRecord associations

This commit is contained in:
Gabe Martin-Dempesy 2013-03-23 00:48:00 -05:00
parent 55ef0f9cbd
commit 01d1228772

View File

@ -408,6 +408,8 @@ You may also use the `:serializer` option to specify a custom serializer class a
has_one :reviewer, :polymorphic => true
```
Serializers are only concerned with multiplicity, and not ownership. `belongs_to` ActiveRecord associations can be included using `has_one` in your serializer.
## Embedding Associations
By default, associations will be embedded inside the serialized object. So if