Require mongoid/version before use

For some reason it is now required, but not sure why.
This commit is contained in:
Yuki Nishijima 2014-05-07 19:13:35 -07:00
parent 039a89b035
commit 342be17ef6
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,8 @@
# Psych does not yet support YAML 1.1 merge keys.
# Merge keys is often used in mongoid.yml
# See: http://redmine.ruby-lang.org/issues/show/4300
require 'mongoid/version'
if RUBY_VERSION >= '1.9.2'
YAML::ENGINE.yamler = 'syck'
end