Switch User Select Box = Nil
Closed this issue · 1 comments
onkelyoo commented
Hello,
the switch user Gem works perfectly on my local env. But when I run my application (live) on heroku, the switch_user_select is nil. User.all is not nil. If I try to switch Users, I get a 404 Status back.
onkelyoo commented
my bad: config.view_guard = lambda { |current_user, request| Rails.env.production? } did it!