lib/mongoid/locker/wrapper.rb in mongoid-locker-0.3.4 vs lib/mongoid/locker/wrapper.rb in mongoid-locker-0.3.5
- old
+ new
@@ -1,7 +1,9 @@
require 'mongoid/compatibility'
-if Mongoid::Compatibility::Version.mongoid5?
+if Mongoid::Compatibility::Version.mongoid6?
+ require 'mongoid/locker/wrapper6'
+elsif Mongoid::Compatibility::Version.mongoid5?
require 'mongoid/locker/wrapper5'
elsif Mongoid::Compatibility::Version.mongoid4?
require 'mongoid/locker/wrapper4'
elsif Mongoid::Compatibility::Version.mongoid3?
require 'mongoid/locker/wrapper3'