class Mongoid::Errors::InvalidCollection

InvalidCollection.new(Address)
@example Create the error.
embedded document.
This error is raised when trying to access a Mongo::Collection from an

def initialize(klass)

def initialize(klass)
  super(
    compose_message("invalid_collection", { klass: klass.name })
  )
end