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
This commit is contained in:
Toshi MARUYAMA 2011-08-19 10:18:49 +00:00
parent bbb6048f65
commit 3c9e99b804
1 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,11 @@
# Don't change this file! # Don't change this file!
# Configure your app in config/environment.rb and config/environments/*.rb # 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) RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
module Rails module Rails