You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to ActiveModelSerializer, we should be able to access the scope object, which is the 'current_user' by default. I'm getting 'nil' when I try to access the scope object. I already have the current_user method defined in my controller.
Any tips or advice on how to properly access or enable scope objects would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
We don't pass this through, but ideally should now that we're thinking about it -The simpler solution is to override the default objects, but that requires a bit more work. I know how late this response is, but assigning it to v1.13 to take a look
According to ActiveModelSerializer, we should be able to access the scope object, which is the 'current_user' by default. I'm getting 'nil' when I try to access the scope object. I already have the current_user method defined in my controller.
Any tips or advice on how to properly access or enable scope objects would be greatly appreciated.
The text was updated successfully, but these errors were encountered: