From: "Andrzej K." Date: 2011-02-14T04:36:18+09:00 Subject: Re: DCI and ruby Andrew Wagner wrote in post #981397: > Hm, interesting question. Can you give an example of when you might need > to > un-assign a role? It only lasts for the length of the request anyway, if > I > understand correctly. One example is a page which consists of many different "boxes", each associated with a different role. I solve it with Cells at the moment. Each cell extends the object. I think it would be good in this case to unextend the object after the cell finishes rendering. Another example might be a Rails app which doesn't use Active Record but keeps objects in memory (like Madeleine). In this case the object is already initialized and if we don't unextend the role then we will have most of the roles mixed after some requests. Mixology gem can probably help here. -- Posted via http://www.ruby-forum.com/.