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

Already on GitHub? Sign in to your account

Make the method returning the current user customizable #694

Closed
adrianpacala opened this Issue Jul 22, 2012 · 2 comments

Comments

Projects
None yet
2 participants

I'm currently using CanCan in an app where there are accounts instead of users. Unfortunately CanCan assumes that the subject of the authorization is always returned by current_user. My workaround for this is aliasing current_user to current_account which works, but there could be a better way of doing this.

Cheers!

Collaborator

andhapp commented Jul 22, 2012

@adrpac: Please see the Changing defaults wiki section. Thanks.

@andhapp andhapp closed this Jul 22, 2012

Mea culpa. Missed that one, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment