Commit d629915c6584a02602e3a1dc3a82c183660c255a
1 parent
704be910
Exists in
master
and in
1 other branch
slight tidy
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
config/environment.rb
1 | 1 | # Load the rails application |
2 | 2 | require File.expand_path('../application', __FILE__) |
3 | -if RUBY_VERSION >'1.9' | |
4 | - require 'yaml' | |
5 | - YAML::ENGINE.yamler= 'syck' | |
3 | +if RUBY_VERSION.to_f >= 1.9 | |
4 | + require 'yaml' | |
5 | + YAML::ENGINE.yamler = 'syck' | |
6 | 6 | end |
7 | 7 | # Initialize the rails application |
8 | 8 | Errbit::Application.initialize! | ... | ... |