removed check for Mongoid::Document constant in railtie