Skip to content

Conversation

@danielross
Copy link

Hi,

Thank you very much for this great gem.

This patch enables the user to choose the name associated with the current_user method in order to suit their own naming convention.
This can be useful when the user wants to impersonate one kind of user (let's say Manager) but already has the current_user method for another type of user (User) and would like to replace it with the method current_manager.

Kind regards,
Daniel

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this current_manager, shouldn't it be send(current_user_method) ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes absolutely!

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

Successfully merging this pull request may close these issues.

2 participants