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

- old
+ new

@@ -1,7 +1,7 @@ module Mongoid module Scroll def self.mongoid3? - ::Mongoid.const_defined? :Observer + Mongoid::VERSION =~ /^3\./ end end end