diff --git a/config/environment.rb b/config/environment.rb index c6d49c6..fcaef1a 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -1,8 +1,8 @@ # Load the rails application require File.expand_path('../application', __FILE__) -if RUBY_VERSION >'1.9' - require 'yaml' - YAML::ENGINE.yamler= 'syck' +if RUBY_VERSION.to_f >= 1.9 + require 'yaml' + YAML::ENGINE.yamler = 'syck' end # Initialize the rails application Errbit::Application.initialize! -- libgit2 0.21.2