We've moved discussions to Discord

Current_team?

Ugurcan Kaya
Chris Oliver  

If I want to change the current_team, would changing the session cookie be enough or is there any other method 

session[:team_id] = team.id 

I have also seen this method somewhere in the code but could not find what it was calling

set_active_team

 


Chris Oliver
`current_team` is defined in ApplicationController. There's a TeamsController#switch method that does that, and you're exactly right, it's just setting `session[:team_id]`
Notifications
You’re not receiving notifications from this thread.