From d0ab0ccc97c785a2ff8f1b2fdf2f7777566a798a Mon Sep 17 00:00:00 2001 From: Jose Angel Cortinas Date: Mon, 17 Dec 2012 17:13:45 -0600 Subject: [PATCH] Take a stab at documenting AMS support. Specifically when used in objects that are not ActiveRecord objects. --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 2d70c71a..199edefa 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,14 @@ the serializer generator: $ rails g serializer post ``` +### Support for PORO's and other ORM's. + +Currently `ActiveModel::Serializers` adds serialization support to all models +that descend from `ActiveRecord`. If you are using another ORM or if you are +using objects that are `ActiveModel` compliant, but do not descend from +`ActiveRecord`. You must add an include statement for +`ActiveModel::SerializerSupport`. + # ActiveModel::Serializer All new serializers descend from ActiveModel::Serializer