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

Do not re-define the #page method on mongoid 5.0

The issue reported on #567 doesn't appear on mongoid 5.0, so we don't need this hack any more.

  * https://github.com/amatsuda/kaminari/issues/567
  * https://github.com/amatsuda/kaminari/issues/646#issuecomment-71754471

fixes #723.
This commit is contained in:
Yuki Nishijima 2016-01-02 15:29:58 +00:00
parent 4daaccb742
commit 7205e5db05

View file

@ -20,7 +20,7 @@ module Kaminari
super
kls.send(:include, Kaminari::MongoidExtension::Document.dup)
end
end
end if Mongoid::VERSION < '5.0.0'
end
end
end