From: Andrew Wagner Date: 2012-02-10T05:31:40+09:00 Subject: Re: Introducing Schizo, A DCI gem --f46d0407162b0b9c9404b88de616 Content-Type: text/plain; charset=UTF-8 Fantastic to see some work being done on this, kudos to you! I have a dumb question. In the example in the readme, why can't you just do object.singleton_class.class_eval instead of object.class.class_eval? That should make the changes only affect that object, right? On Thu, Feb 9, 2012 at 1:17 PM, Christopher J. B. wrote: > Schizo - DCI (data, context and interaction) for Ruby / Rails / > ActiveRecord. > > I've been interested in DCI, but was disappointed when trying to use it > in a typical Rails app (one that uses ActiveRecord). Often times, > extending a record with methods is not enough; you want to extend a > record with associations, validations, callbacks, etc. Unfortunately > that information exists in the record's class... so if you modify it, > you modify it for *all* records of that type. Schizo offers a way to > get around that problem. > > Please take a look: https://github.com/cjbottaro/schizo > > The README.rdoc contains a clear an concrete example of the problem > Schizo is trying to solve. > > Thanks! > > -- > Posted via http://www.ruby-forum.com/. > > --f46d0407162b0b9c9404b88de616--