Refactor and include SessionUserConcern in app/controllers/application_controller.rb
We include SessionUserConcern in a handful of places
Should we just include it in app/controllers/application_controller.rb so it's available in all controllers?
I also think it would be nicer if session_user was a struct rather than a hash (so we do session_user.id instead of session_user[:id])
Implementation plan
- Agree the above plan makes sense
- Remove all separate includes of SessionUserConcern
- Include SessionUserConcern in
app/controllers/application_controller.rb
This could be as separate MR or part of the same:
- Convert SessionUserConcern to a struct
- Update all references to
session_user[:x]tosession_user.x
Edited by 🤖 GitLab Bot 🤖