Fix problem with environment variables and mongoid