In one of my rails models, I save a Marshal serialized array of Classes. If I change the name of one of the classes, Marshal is no longer able to deserialize the array. Is there a way I can get the unchanged parts of the array?
Here is how you can simulate my problem in IRB
$ irb
> require 'set'
> tmp = Marshal.dump [Hash, Fixnum, Set]
> => "\x04\b[\bc\tHashc\vFixnumc\bSet"
> Marshal.load "\x04\b[\bc\tHashc\vFixnumc\bSet"
> => [Hash, Fixnum, Set] - like I want
> exit
$ irb
> Marshal.load "\x04\b[\bc\tHashc\vFixnumc\bSet"
> # throws error, but what I want is [Hash, Fixnum], or even [Hash, Fixnum, nil]
Is there any way I could conceivably do this?