From: Michel Demazure Date: 2010-02-12T02:58:12+09:00 Subject: Re: "Code must be Chunkable" Brian Candler wrote: > Michel Demazure wrote: >> Could you not extend again by a Module which would undefine the added >> methods ? > > It's a moot point in the common case where objects don't persist (i.e. > Account.find(id) creates a new object from info in the database) > > I think it could be done more cleanly with a facade/proxy object. This > would have an added advantage that concrete methods in the underlying > object could not call back to the context (which they should not be able > to do; only the injected methods should do this) I agree. M. -- Posted via http://www.ruby-forum.com/.