fix mongoid and mongo_mapper incompabilities
Merge pull request #81 from nbit001/fix_incompabilities

Fix mongoid and mongo_mapper incompabilities.