Hi,
I don't know if this is a bug or it is the expected behavior but I am trying to serialize an AR object into another. I know this is not very usual but I don't want to use a belongs_to association because the object is transient. I need an snapshot of how the 2nd object was at the moment of the creation of the 1st.
class One < ActiveRecord::Base end
class Two < ActiveRecord::Base serialize one end
obj1 = One.find(:first) obj2 = Two.create(...) obj2.one = obj1 obj2.save
My problem is that it seems that AectiveRecord only saves the id of the serialized object when create or update the second object and not all the yaml format of the serialized. There is not any association between the two objects.
Anyone knows if I am on the right track? Or I need to change the direction?
Thanks Juanma Cervera