mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Merge pull request #185 from kevins90/update_readme_object_accessor
Revised one more instance in the doc referring to the object method alias
This commit is contained in:
commit
a1d5561eac
@ -217,8 +217,7 @@ end
|
||||
```
|
||||
|
||||
Within a serializer's methods, you can access the object being
|
||||
serialized as either `object` or the name of the serialized object
|
||||
(e.g. `admin_comment` for the `AdminCommentSerializer`).
|
||||
serialized as `object`.
|
||||
|
||||
You can also access the `scope` method, which provides an
|
||||
authorization context to your serializer. By default, scope
|
||||
|
||||
Loading…
Reference in New Issue
Block a user