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
1 changed files with 1 additions and 1 deletions

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