From 28de380fc21b0f8551d5cae6fcd9a5792468c614 Mon Sep 17 00:00:00 2001 From: Siong Date: Thu, 20 Nov 2014 13:29:41 -0800 Subject: [PATCH] update README. --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 6ae5b27..30b9ddf 100644 --- a/README.md +++ b/README.md @@ -109,6 +109,16 @@ get "/homes" end ``` +### Support for `default_serializer_options` + +```ruby + helper do + def default_serializer_options + {only: params[:only], except: params[:except]} + end + end +``` + ### current_user One of the nice features of ActiveModel::Serializers is that it