require "kaminari/mongo_mapper/version"

module Kaminari
  module MongoMapper
    # Your code goes here...
  end
end

require "kaminari/mongo_mapper/version"

ActiveSupport.on_load :mongo_mapper do
  require 'kaminari/models/mongo_mapper_extension'
  ::MongoMapper::Document.send :include, Kaminari::MongoMapperExtension::Document
  ::Plucky::Query.send :include, Kaminari::PluckyCriteriaMethods
end

Copy MongoMapper initialization from kaminari/hooks.rb
Copy MongoMapper initialization from kaminari/hooks.rb
