Topic: Access "session['user']" from before_save Active Record callback
Fellow Rails lovers,
I save my user in "session['user']" on login, and what I want to do is determine if I have a user logged in within the before_save Active Record callback (which I have as a method named "user?").
I thought it would be straightforward, but alas the "session" array is nil, yet I can use it in the controllers and views ok, happily displaying either the logged in username or anonymous in the interface with "session['user'].login".
Any ideas? Thanks in advance.