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

@since 2.2.0

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