Commit 389cba436c416605bd2833a260c89cc80a7502ef

Authored by Daniel Cohen
1 parent 48737a27
Exists in master and in 1 other branch production

added conditional require based on ruby version

Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
config/environment.rb
1 1 # Load the rails application
2 2 require File.expand_path('../application', __FILE__)
3   -require 'yaml'
4   -YAML::ENGINE.yamler= 'syck'
  3 +if RUBY_VERSION >'1.9'
  4 + require 'yaml'
  5 + YAML::ENGINE.yamler= 'syck'
  6 +end
5 7 # Initialize the rails application
6 8 Errbit::Application.initialize!
7 9  
... ...