I have an app that has basic Devise authentication. After sign in, I would like to look up the user account (user belongs_to account, account has_many users), and store that in the session so that it is available like the @current_user.
What is the rails way of storing session in formation like this? Is there a hook I can use with Devise to execute code after successful sign-in?