Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set_user_by_token not called in overriden controller #291

Closed
wjdhamilton opened this issue Jul 4, 2015 · 2 comments
Closed

set_user_by_token not called in overriden controller #291

wjdhamilton opened this issue Jul 4, 2015 · 2 comments

Comments

@wjdhamilton
Copy link

In the documentation section entitled "Custom Controller Overrides" it is stated that @user should have been set by the concern using set_user_by_token. However, on my system it isn't. I have to call set_user_by_token explicitly. Should the documentation be updated or have I found a bug?

@colavitam
Copy link
Contributor

I believe you're looking for current_user instead of @user.

@booleanbetrayal
Copy link
Collaborator

I've just updated the documentation to reflect @resource as used in the code. current_user should also be accessible in your case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants