class Mongoid::Errors::InvalidFind

Raised when invalid arguments are passed to find.

Public Class Methods

new() click to toggle source

Create the new invalid find error.

@example Create the error.

InvalidFind.new
Calls superclass method
# File lib/mongoid/errors/invalid_find.rb, line 14
def initialize
  super(compose_message("calling_document_find_with_nil_is_invalid", {}))
end