Excellent, you are right. I thought I tried that but I have tried many
combinations so I must have done it for something that was not
persistent in itself. @@variable worked when in production mode. You
made me a very happy camper.

Thanks.

Erik


On 27 mar, 19:03, Frederick Cheung <frederick.che...@gmail.com> wrote:
> On Mar 27, 5:33 pm, Erik Lindblad <e...@aldm.se> wrote:
>
> > Hi Colin and thanks for the suggestion. But the problem is more
> > intricate than this, I am afraid. The reason I want to keep the object
> > is that it connects via sockets to a pool of servers (at least 4 of
> > them). When the object is marshaled, either for storage in the session
> > or in the db these connections are lost. Maybe there is another
> > solution but as I understand it the only way to keep these connections
> > is to keep the object itself, not a serialized copy.
>
> I suspect class variables etc are only vanishing because you are in
> development mode. In production mode they will persist.
>
> Fred

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to