I tried to convert a model object to yaml(use to_yaml method), and after
that, I would like to convert the yaml(string type) back to the model
object. But when I use YAML::load to do that, it failed, the return
object’s class is Yaml class, not my prior model class… Please tell me
how can I do to convert yaml to an object as the prior model class, or
how can I access the content of the model object by this yaml?
Thank you !