lib/mongoid-scroll.rb in mongoid-scroll-0.3.0 vs lib/mongoid-scroll.rb in mongoid-scroll-0.3.1

- old
+ new

@@ -6,10 +6,10 @@ require 'mongoid/scroll/version' require 'mongoid/scroll/mongoid' require 'mongoid/scroll/errors' require 'mongoid/scroll/cursor' -require 'moped/scrollable' +require 'moped/scrollable' if Object.const_defined?(:Moped) require 'mongoid/criterion/scrollable' -Moped::Query.send(:include, Moped::Scrollable) +Moped::Query.send(:include, Moped::Scrollable) if Object.const_defined?(:Moped) Mongoid::Criteria.send(:include, Mongoid::Criterion::Scrollable)