[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: ActiveRecord (not necessarily rails

Ball, Donald A Jr (Library)

6/27/2007 8:32:00 PM

> 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