Updates to work with Rails 4.x & Mongoid 4.x