Sha256: 219b593a112e0a4944a0eff82c2859839db98dc5b9444d39c65fe9882ca9cbf5

Contents?: true

Size: 457 Bytes

Versions: 24

Compression:

Stored size: 457 Bytes

Contents

# frozen_string_literal: true

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.
      def initialize(klass)
        super(compose_message("no_metadata", { klass: klass }))
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
mongoid-8.1.7 lib/mongoid/errors/no_metadata.rb
mongoid-8.1.6 lib/mongoid/errors/no_metadata.rb
mongoid-8.0.8 lib/mongoid/errors/no_metadata.rb
mongoid-8.1.5 lib/mongoid/errors/no_metadata.rb
mongoid-8.1.4 lib/mongoid/errors/no_metadata.rb
mongoid-8.0.7 lib/mongoid/errors/no_metadata.rb
mongoid-8.1.3 lib/mongoid/errors/no_metadata.rb
mongoid-8.1.2 lib/mongoid/errors/no_metadata.rb
mongoid-8.0.6 lib/mongoid/errors/no_metadata.rb
mongoid-7.5.4 lib/mongoid/errors/no_metadata.rb
mongoid-8.1.1 lib/mongoid/errors/no_metadata.rb
mongoid-8.0.5 lib/mongoid/errors/no_metadata.rb
mongoid-8.1.0 lib/mongoid/errors/no_metadata.rb
mongoid-7.5.3 lib/mongoid/errors/no_metadata.rb
mongoid-8.0.4 lib/mongoid/errors/no_metadata.rb
mongoid-8.0.3 lib/mongoid/errors/no_metadata.rb
mongoid-7.5.2 lib/mongoid/errors/no_metadata.rb
mongoid-8.0.2 lib/mongoid/errors/no_metadata.rb
mongoid-7.5.1 lib/mongoid/errors/no_metadata.rb
mongoid-7.4.3 lib/mongoid/errors/no_metadata.rb