mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
commit
f72ab35d9d
@ -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