Update document.rb

Unless mongoid 4 or more