def load_model(file)
      begin
        require_dependency(file)
      rescue Exception => e
        Logger.new($stdout).warn(e.message)
      end
    end
def load_model(file)
      begin
        require_dependency(file)
      rescue Exception => e
        Logger.new($stdout).warn(e.message)
      end
    end
I don't want to mock out kernel for unit testing purposes, so added this
 method as a convenience.

 @example Load the model.
   Mongoid.load_model("/mongoid/behavior")

 @param [ String ] file The base filename.

 @since 2.0.0.rc.3