Rails auto loading and YAML serialisation.