mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
commit
0c2691a46d
@ -284,7 +284,7 @@ authorization context to your serializer. By default, the context
|
||||
is the current user of your application, but this
|
||||
[can be customized](#customizing-scope).
|
||||
|
||||
Serializers provides a method named `filter`, which should return an array
|
||||
Serializers provide a method named `filter`, which should return an array
|
||||
used to determine what attributes and associations should be included in the output.
|
||||
This is typically used to customize output based on `current_user`. For example:
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user