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

rename @user to @resource #48

Closed
djangdal opened this issue Oct 17, 2014 · 1 comment
Closed

rename @user to @resource #48

djangdal opened this issue Oct 17, 2014 · 1 comment

Comments

@djangdal
Copy link

Should implement current_user instead of @user.

Can sometimes be conflict, for example with cancancan:
before_action :authenticate_user!
load_and_authorize_resource
will both try to set @user for show method

@lynndylanhurley
Copy link
Owner

Thanks @djangdal - I'll roll this out with the next release.

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

2 participants