Skip to content
Browse files

Added a note about YAML merges and Psych. Your library is hardly the …

…only one affected, but I thought it might be worth noting.
  • Loading branch information...
1 parent 4519763 commit 9aba028c6355fe38fcd82813b394496240662971 @dleavitt dleavitt committed Sep 8, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 README.rdoc
View
6 README.rdoc
@@ -65,6 +65,12 @@ Using a namespace allows us to change our configuration depending on our environ
production:
<<: *defaults
+_Note_: Certain Ruby/Bundler versions include a version of the Psych YAML parser which incorrectly handles merges (the `<<` in the example above.)
+If your default settings seem to be overwriting your environment-specific settings, including the following lines in your config/boot.rb file may solve the problem:
+
+ require 'yaml'
+ YAML::ENGINE.yamler= 'syck'
+
=== 3. Access your settings
>> Rails.env

0 comments on commit 9aba028

Please sign in to comment.
Something went wrong with that request. Please try again.