mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
Require mongoid/version before use
For some reason it is now required, but not sure why.
This commit is contained in:
parent
039a89b035
commit
342be17ef6
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue