Yaml_db failing on Rails 3.1 and Ruby 1.9.2. because document separators "---" not being removed w/ trailing space. For some reason (maybe psych yaml lib) final output of yaml dump is different than expected. This patch just checks with a regex (instead of string comparison) to remove unnecessary separators "---" in the document.
fix for rails 3.1 and ruby 1.9.2... something related to psych yaml p…
regex instead of string comparison when formatting yaml for dump
(though I probably would have used
+1 to as016194
+1 for the fix, although it's not related to Rails 3.1. Verified working patch.