Added require 'mongoid' to config/application.rb