[Nitro] Concerns over Og mandating the form of initialize

George Moschovitis george.moschovitis at gmail.com
Wed Apr 13 09:48:16 EDT 2005


> Question: If you do not call Foo.new, how is @tstamp initialized to the
> time of creation?

No, I call Foo.new when the object is created:

f = Foo.new
f.save
oid = f.oid

then when I reload f:

fr = Foo[oid]

the read method in Og should NOT call initialize again...
It should call Foo.allocate and the fill in the serialized attributes
using og_read.
This is the correct behaviour I think.

-g.



-- 
http://nitro.rubyforge.org
http://www.joy.gr




More information about the Nitro-general mailing list