From a3fe031b7d0e90bb1e19f1d293a237306fe481b0 Mon Sep 17 00:00:00 2001 From: jeffrey008 Date: Thu, 4 May 2017 13:24:13 +0800 Subject: [PATCH] Fix readme in 0.9 There is no `@options` in 0.9, but `@serialization_options` instead. Changed readme to stop confusing people. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e1ea80b..59695b20 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ it exists, use it to serialize the `Post`. This also works with `respond_with`, which uses `to_json` under the hood. Also note that any options passed to `render :json` will be passed to your -serializer and available as `@options` inside. +serializer and available as `@serialization_options` inside. To specify a custom serializer for an object, you can specify the serializer when you render the object: