I am trying to build a web applicatoin with revision control. Don''t ask why, it is a dream project. What I have so far is that I have a revision model which can be applied to all my other model I want with revision support. But I then realized that I need to have a has_one statement inside the revision model for each datatype which I want revisionned. example: class Revision ... has_one :profiles has_one :project has_one :page has_one :template etc... end When I want to save I do revision.send(datatype.class.to_s.tableize.singularize+"=", datatype) revision.save! This works, yet, for each new datatype I want revisionned I have to go and add a has_one statement. Is there a way for me to do something like: datatype.class.has_one datatype.class revision.send(datatype.class.to_s.tableize.singularize+"=", datatype) revision.save! or maybe I see it totally the wrong way... Anybody to enlight me? -- Yannick Koehler _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails