YAML fails when has_one is null

My model has_one :association

If I call model.to_yaml (or y model) in the console, and the association is nil, I get a yaml error. Anyone else get this? Is this a confirmed bug?

Yes, looks like a known problem:

http://dev.rubyonrails.org/ticket/8016