From 01d12287729232714d4e320253a4af5f78aa6644 Mon Sep 17 00:00:00 2001 From: Gabe Martin-Dempesy Date: Sat, 23 Mar 2013 00:48:00 -0500 Subject: [PATCH] Document inclusion of belongs_to ActiveRecord associations --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6bd446fd..d99536f0 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ development.** # Installing Serializers -The easiest way to install `ActiveModel::Serializers` is to add it to your +The easiest way to install `ActiveModel::Serializers` is to add it to your `Gemfile`: ```ruby @@ -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