1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

Do not attempt to set yamler if on Ruby 2.2.0

It's been removed from 2.2.0: https://bugs.ruby-lang.org/issues/8344
This commit is contained in:
Yuki Nishijima 2014-12-31 02:08:17 -08:00
parent 56e284f5f5
commit df575642c4

View file

@ -5,7 +5,7 @@
# See: http://redmine.ruby-lang.org/issues/show/4300
require 'mongoid/version'
if RUBY_VERSION >= '1.9.2'
if RUBY_VERSION >= '1.9.2' && RUBY_VERSION < '2.2.0'
YAML::ENGINE.yamler = 'syck'
end