Skip to content

Commit

Permalink
Added a note about YAML merges and Psych. Your library is hardly the …
Browse files Browse the repository at this point in the history
…only one affected, but I thought it might be worth noting.
  • Loading branch information
dleavitt committed Sep 9, 2011
1 parent 4519763 commit 9aba028
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9aba028

Please sign in to comment.