mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
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:
parent
2eb57af561
commit
a3fe031b7d
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user