Merge pull request #47 from sethherr/patch-1

Readme update with note about accessing current_user
This commit is contained in:
Daniel Doubrovkine (dB.) @dblockdotorg 2015-12-03 23:20:13 -05:00
commit bc758e0b66

View file

@ -151,6 +151,8 @@ class PostSerializer < ActiveModel::Serializer
end
```
*Note*: in the [0.9.x stable version of active model serializers](https://github.com/rails-api/active_model_serializers/tree/0-9-stable#customizing-scope), you have to access current user on scope - so `scope.current_user`.
### Full Example
```ruby