module Mongoid

this code is totally extracted from shoulda-matchers gem.