Fix readme in 0.9

There is no `@options` in 0.9, but `@serialization_options` instead. Changed readme to stop confusing people.
This commit is contained in:
jeffrey008 2017-05-04 13:24:13 +08:00 committed by GitHub
parent 2eb57af561
commit a3fe031b7d

View File

@ -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: