From: Phlip Date: 2009-05-01T09:45:05+09:00 Subject: Re: Merb Mike Mickey wrote: > it's an API wrapper but a lot of calls are cached in the session, so i > need to access the session in all the function of the class. > > Have you a better solution ? Better than passing the whole object in? you said you need the whole object; go ahead and rely on OO and encapsulation. There's nothing architecturally wrong with passing a whole object in. The Merb mailing list might have other ideas... news://news.gmane.org:119/gmane.comp.web.merb.devel ...but be prepared to answer the same questions as I asked. -- Phlip