class Mongoid::Errors::NoMetadata

Used when trying to persist data when metadata has not been set.

Public Class Methods

new(klass) click to toggle source

Create the new error.

@example Create the error.

NoMetadata.new(Address)

@param [ Class ] klass The document class.

@since 3.0.0

Calls superclass method
# File lib/mongoid/errors/no_metadata.rb, line 18
def initialize(klass)
  super(compose_message("no_metadata", { klass: klass }))
end