Commit 389cba436c416605bd2833a260c89cc80a7502ef
1 parent
48737a27
Exists in
master
and in
1 other branch
added conditional require based on ruby version
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
config/environment.rb
1 | # Load the rails application | 1 | # Load the rails application |
2 | require File.expand_path('../application', __FILE__) | 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 | # Initialize the rails application | 7 | # Initialize the rails application |
6 | Errbit::Application.initialize! | 8 | Errbit::Application.initialize! |
7 | 9 |