How to use an active record store session model?

I have a toy rails app, 2.3.5 on Debian 'squeeze', that uses the ActiveRecord session store. I can see that it set cookies and inserts rows into the database table 'sessions'.

Inside a controller, how do I acquire a reference to the model object representing the current session? This used to be possible by calling 'session.model' but in 2.3.5 there is no 'model' method on the session object.

Thanks

Let me know if you figure this out - I'm having the same problem.

-- Garth

Let me know if you figure this out - I'm having the same problem.

      session[:fish] = ! session[:fish]       @site_session = request.env['rack.session.record']

The fishy line, or equivalent, seems to be required to ensure that Rails creates a session object.

I don't know that this is the best way to get the session model object. It's pretty deranged compared to '... = session.model'.