how can we unset an Active Record relationship of an instance on the
fly? i have this:
class User < AR
@user is the instance of User, and it has relationship to profile
(@user.profile). the profile contain a large data, and it has been
loaded into @user. the problem is, i need to save the @user into session
without saving the profile (to avoid repetitive SQL lookup to user
information, and to increase performance)
but the current situation is, the profile is also saved into the
session. my session is stored in the database, so by also saving this
profile object, it will eat my database space.
can it be done?
thanks in advance