From 3c9e99b804e76a5f27ddaa3c4033095ca60c67fc 2011-08-19 10:18:49 From: Toshi MARUYAMA Date: 2011-08-19 10:18:49 Subject: [PATCH] Ruby 1.9: force use syck yaml library (#8847, #4050). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6462 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/config/boot.rb b/config/boot.rb index 95bd6b8..12bee3d 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -1,6 +1,11 @@ # Don't change this file! # Configure your app in config/environment.rb and config/environments/*.rb +if RUBY_VERSION >= '1.9' + require 'yaml' + YAML::ENGINE.yamler = 'syck' +end + RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT) module Rails