I’ve been developing an application in Rails 1.0 and finally made the
switch to Edge for has_many :through and polymorphism. I’m currently
storing the authenticated user object (User model) in the session. This
has worked well up until upgrading to EdgeRails. What I do is set @user
= session[:user] in my controllers and then access the various @user
associations such as @user.posts. In 1.0, the session data would
remained unchanged unless I explicitlt made change to a @user property,
but in Edge, every association I reference is copied into the session
and becomes dissociated from the database. For example,
@user.posts.delete(post) only removes the post from the session. If i
delete it from teh database directly, I have to reload the user object.
Are there any new session options that I can change to prevent rails
from copying associations to the session in the first place? I really
don’t want to have to worry about the session becoming stale and/or
dissociated from the database.