Displaying 3 results from an estimated 3 matches for "010o".
Did you mean:
0100
2006 Jul 10
1
Serializing objects to the database
I have a rails app that has a search mechanism with a bunch of
options. I''ve consolidated all the search parameters into a
SearchQuery class. Now I want to store searches to be recalled later.
I searched the wiki but couldn''t find any pages about how to do this
best. I''m worried that if I just serialize the object I won''t be able
to change the class without
2006 Jul 21
0
Marshal.dump not dumping entire object?
...development environment.
>> start_time = Runt::PDate.min(Runt::REDay::ANY_DATE.year,
Runt::REDay::ANY_DATE.month,Runt::REDay::ANY_DATE.day, 8, 11)
=> #<Runt::PDate: 3531621371/1440,0,2299161>
>> data = Marshal.dump(start_time)
=> "\004\010u:\020Runt::PDateA\004\010[\010o:\rRational\a:
\017@numeratorl+\a\373C\200\322:\021@denominatori\002\240\005i\000i
\003\031\025#"
>> obj = Marshal.load(data)
=> #<Runt::PDate: 3531621371/1440,0,2299161>
>> start_time.date_precision
=> #<Runt::DPrecision::Precision:0x2753cfc @precision=4>
>...
2006 Jul 21
0
[RESOLVED] Marshal.dump not dumping entire object?
...development environment.
>> start_time = Runt::PDate.min(Runt::REDay::ANY_DATE.year,
Runt::REDay::ANY_DATE.month,Runt::REDay::ANY_DATE.day, 8, 11)
=> #<Runt::PDate: 3531621371/1440,0,2299161>
>> data = Marshal.dump(start_time)
=> "\004\010u:\020Runt::PDateA\004\010[\010o:\rRational\a:
\017@numeratorl+\a\373C\200\322:\021@denominatori\002\240\005i\000i
\003\031\025#"
>> obj = Marshal.load(data)
=> #<Runt::PDate: 3531621371/1440,0,2299161>
>> start_time.date_precision
=> #<Runt::DPrecision::Precision:0x2753cfc @precision=4>
>...