Add back support for Mongoid2.