Skip to content

Commit

Permalink
Merge pull request #47 from sethherr/patch-1
Browse files Browse the repository at this point in the history
Readme update with note about accessing current_user
  • Loading branch information
dblock committed Dec 4, 2015
2 parents ca9c8fa + 4347c8d commit bc758e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc758e0

Please sign in to comment.