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)
-- 
Posted via http://www.ruby-forum.com/.