Why am I getting this error when I try to deserialize a new ActiveRecord object:
[Dev]> YAML.load(Identity.new.to_yaml)
Delayed::DeserializationError: Delayed::DeserializationError
while this example with an existing AR object works as expected:
[Dev]> YAML.load(Identity.first.to_yaml)
=> #<Identity id: 1, ...
A few things that seem relevant are based on finding answers:
I use the ruby 1.9.2p318, rails 3.1.3, delayed_job 2.1.4, and my YAML::ENGINE.yamler- syck.
What can I do so that I can serialize the new Identity record as YAML and then deserialize it later?
UPDATE: I also found that if I remove the stone delayed_job, then this simple example will work, and mine YAML::ENGINE.yamlernow psych. But I use delayed_jobin my application, so itβs still important to understand what is happening