Fixing bug where attempting to use a hash object as a mongoid modle