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 · 1 comment
Open

Enhancement: expose current_resource_owner to views #1674

vlad-pisanov opened this issue Oct 24, 2023 · 1 comment

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.

@nbulaj
Copy link
Member

nbulaj commented Dec 6, 2024

Hey @vlad-pisanov . Makes sense for me, do you want to propose a PR?

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

No branches or pull requests

2 participants