]> source.dussan.org Git - redmine.git/commitdiff
Ruby 1.9: force use syck yaml library (#8847, #4050).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 19 Aug 2011 10:18:49 +0000 (10:18 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 19 Aug 2011 10:18:49 +0000 (10:18 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6462 e93f8b46-1217-0410-a6f0-8f06a7374b81

config/boot.rb

index 95bd6b8853506694b3d3058464694668f8d86a48..12bee3d13f08281a3ab048dd4a17bf43757fc718 100644 (file)
@@ -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