module Bullet::Dependency

def mongoid_version

def mongoid_version
  @mongoid_version ||=
    begin
      if mongoid4x?
        'mongoid4x'
      elsif mongoid5x?
        'mongoid5x'
      elsif mongoid6x?
        'mongoid6x'
      elsif mongoid7x?
        'mongoid7x'
      else
        raise "Bullet does not support mongoid #{::Mongoid::VERSION} yet"
      end
    end
end