From: shawn bright Date: 2007-06-28T05:59:56+09:00 Subject: Re: ActiveRecord (not necessarily rails) ------=_Part_17114_6439142.1182977998533 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline ok, i will look that up. I am not looking to build a rails app with this, i want to build a GUI app where our customers can point different attributes to different models ( kinda like setting a foriegn key dynamically, we are dealing with lots of models here. So, i suppose i could store them in a configuration file or something. thanks for your help On 6/27/07, Ball, Donald A Jr (Library) wrote: > > > no, i am sorry, i was not clear enough. > > is there a way, programatically, that i change the behavior > > of a model while still using the model. > > is there a way to make it change behavior from has_many > > :records to has_many :hats on the fly. > > You could probably do that using class_eval, but it wouldn't last past > the end of the session. > > - donald > > ------=_Part_17114_6439142.1182977998533--