Skip to content

Commit a86d83b

Browse files
authored
Update README.md
1 parent b0ab12d commit a86d83b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,21 @@
88

99
Supported Rails versions: >= 4.1
1010

11+
### Upgrading to 0.10
12+
13+
`sideload_whitelist` has been moved from the resource to the controller:
14+
15+
```diff
16+
class PostsController < ApplicationController
17+
jsonapi resource: PostResource do
18+
- sideload_whitelist({ index: [:foo] })
19+
- end
20+
+ sideload_whitelist({ index: [:foo] })
21+
end
22+
23+
# NEW
24+
```
25+
1126
### Running tests
1227

1328
We support Rails >= 4.1. To do so, we use the [appraisal](https://github.com/thoughtbot/appraisal) gem. So, run:

0 commit comments

Comments
 (0)