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

Enhancement: expose current_resource_owner to views #1674

Open
vlad-pisanov opened this issue Oct 24, 2023 · 0 comments
Open

Enhancement: expose current_resource_owner to views #1674

vlad-pisanov opened this issue Oct 24, 2023 · 0 comments

Comments

@vlad-pisanov
Copy link

vlad-pisanov commented Oct 24, 2023

Just as Devise makes current_user accessible to both the controllers and views via helper_method, it would make sense to make current_resource_owner accessible to views as well.

Currently, when custom views need to access the resource owner, it must be done via the hacky and undocumented @current_resource_owner memoized variable.

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

1 participant