From 389cba436c416605bd2833a260c89cc80a7502ef Mon Sep 17 00:00:00 2001 From: Daniel Cohen Date: Sun, 9 Oct 2011 08:32:23 +0200 Subject: [PATCH] added conditional require based on ruby version --- config/environment.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/environment.rb b/config/environment.rb index 984b36c..c6d49c6 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -1,7 +1,9 @@ # Load the rails application require File.expand_path('../application', __FILE__) -require 'yaml' -YAML::ENGINE.yamler= 'syck' +if RUBY_VERSION >'1.9' + require 'yaml' + YAML::ENGINE.yamler= 'syck' +end # Initialize the rails application Errbit::Application.initialize! -- libgit2 0.21.2