diff --git a/docs/general/fields.md b/docs/general/fields.md index 4078977bb..a1a12be68 100644 --- a/docs/general/fields.md +++ b/docs/general/fields.md @@ -22,7 +22,7 @@ class AnonymousController < ApplicationController end ``` -Note that this is only valid for the `json` adapter. For the `json_api` adapter, you would use +Note that this is only valid for the `json` and `attributes` adapter. For the `json_api` adapter, you would use ```ruby render json: @user, fields: { users: [:access_token] } diff --git a/docs/general/rendering.md b/docs/general/rendering.md index 27f945eb7..a16d12c97 100644 --- a/docs/general/rendering.md +++ b/docs/general/rendering.md @@ -73,7 +73,7 @@ See [ARCHITECTURE](../ARCHITECTURE.md) for more information. #### fields -If you are using `json` adapter +If you are using `json` or `attributes` adapter ```ruby render json: @user, fields: [:access_token] ```