Sha256: 91a5da64d31821793804b4ed9524ae9153fbf71f8531f59ec0db09911b01b180
Contents?: true
Size: 504 Bytes
Versions: 27
Compression:
Stored size: 504 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 module Mongoid module Errors # Used when trying to persist data when metadata has not been set. class NoMetadata < MongoidError # Create the new error. # # @example Create the error. # NoMetadata.new(Address) # # @param [ Class ] klass The document class. # # @since 3.0.0 def initialize(klass) super(compose_message("no_metadata", { klass: klass })) end end end end
Version data entries
27 entries across 27 versions & 2 rubygems