Re: [Rails] Persistent objects

2010-03-27 Thread Colin Law
On 27 March 2010 15:44, Erik Lindblad wrote: > Is there a way to create an object that is a singleton (one instance > per user session) and is kept as long as the user session exists? The > object handles a connection to a remote server that is very heavy to > establish so I would like to reuse th

[Rails] Persistent objects

2010-03-27 Thread Erik Lindblad
Is there a way to create an object that is a singleton (one instance per user session) and is kept as long as the user session exists? The object handles a connection to a remote server that is very heavy to establish so I would like to reuse the same object in following requests. I have tried cla