From dfd9cf977891dd36b228c6387a0b5b4b19721c76 Mon Sep 17 00:00:00 2001 From: Ryunosuke Sato Date: Tue, 31 May 2016 04:24:30 +0900 Subject: [PATCH] Update README to write how to configure adapter --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 0e72fa275..57d31cef8 100644 --- a/README.md +++ b/README.md @@ -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