Modified code for production
Fixed error on mongoid.yml