From 4347c8d7d359f6bc7d90162fa8ed414f1af0d175 Mon Sep 17 00:00:00 2001 From: Seth Herr Date: Wed, 2 Dec 2015 14:19:42 -0600 Subject: [PATCH] Add information about accessing current_user Fix. project using: - active_model_serializers - 0.9.3 - grape 0.13.0 - grape-active_model_serializers 1.3.2 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 2012fa0..6cac695 100644 --- a/README.md +++ b/README.md @@ -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