Mongoid 3.0

Quick hack to make this work with mongoid 3.0 and moped (probably a better way of doing this but does the job)