Skip to content

Commit

Permalink
Added info for other adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
luizkowalski committed Jun 16, 2016
1 parent d56c6c5 commit deae55c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/general/fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -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] }
Expand Down
2 changes: 1 addition & 1 deletion docs/general/rendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
```
Expand Down

0 comments on commit deae55c

Please sign in to comment.