Problem with authentication using RAILS_ENV=production
I'm running loomio 1.x and for some reason, when I try to run it in the production environment, users are logged out immediately after logging in.
In trying to trace down the problem, I've found that current\_user is returning nil. Hoping someone can help me understand this code. I see it is defined in CurrentUserHelper and when it is working (in development) the value is coming from super. How and when does CurrentUserHelper's super get set to a logged in User?
Note, this is all on my local machine, so the issue is definitely due to different behavior based on RAILS\_ENV.