lib/mongoid-scroll.rb in mongoid-scroll-0.3.3 vs lib/mongoid-scroll.rb in mongoid-scroll-0.3.4

- old
+ new

@@ -1,15 +1,12 @@ require 'i18n' I18n.load_path << File.join(File.dirname(__FILE__), 'config', 'locales', 'en.yml') require 'mongoid' +require 'mongoid-compatibility' require 'mongoid/scroll/version' -require 'mongoid/scroll/mongoid' require 'mongoid/scroll/errors' require 'mongoid/scroll/cursor' - require 'moped/scrollable' if Object.const_defined?(:Moped) +require 'mongo/scrollable' if Object.const_defined?(:Mongo) require 'mongoid/criterion/scrollable' - -Moped::Query.send(:include, Moped::Scrollable) if Object.const_defined?(:Moped) -Mongoid::Criteria.send(:include, Mongoid::Criterion::Scrollable)