Commit e9ba79839cf9a9a69b63656b93037c6a2b9d8d68
Exists in
master
Merge pull request #22 from dleavitt/patch-1
Added a note about YAML merges and Psych
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
README.rdoc
... | ... | @@ -65,6 +65,12 @@ Using a namespace allows us to change our configuration depending on our environ |
65 | 65 | production: |
66 | 66 | <<: *defaults |
67 | 67 | |
68 | +_Note_: Certain Ruby/Bundler versions include a version of the Psych YAML parser which incorrectly handles merges (the `<<` in the example above.) | |
69 | +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: | |
70 | + | |
71 | + require 'yaml' | |
72 | + YAML::ENGINE.yamler= 'syck' | |
73 | + | |
68 | 74 | === 3. Access your settings |
69 | 75 | |
70 | 76 | >> Rails.env | ... | ... |