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

Move to using the current_profile loaded in the session #56

Open
davemcg3 opened this issue Nov 4, 2021 · 0 comments
Open

Move to using the current_profile loaded in the session #56

davemcg3 opened this issue Nov 4, 2021 · 0 comments
Labels
enhancement New feature or request tech debt Keep The Lights On
Milestone

Comments

@davemcg3
Copy link
Owner

davemcg3 commented Nov 4, 2021

current_profile is loaded into the session in profiles_controller#load_profile. This is currently only used in creating or editing wall posts but should be happening more ubiquitously. This would allow us to move closer toward the goal of allowing a user to have multiple profiles.

The goal here is to remove calls to current_user.profiles.first and replace them with calls to current_profile. This may take investigation into how devise sets current_user and doing something similar for current_profile.

@davemcg3 davemcg3 added enhancement New feature or request tech debt Keep The Lights On labels Nov 4, 2021
@davemcg3 davemcg3 added this to the beta milestone Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request tech debt Keep The Lights On
Projects
None yet
Development

No branches or pull requests

1 participant