Sha256: 869adfdc56a2a2f3d923206b1cde76c115f959c969859e67618ecac4a07b8d82

Contents?: true

Size: 569 Bytes

Versions: 9

Compression:

Stored size: 569 Bytes

Contents

# frozen_string_literal: true

module Mongoid
  module Errors

    # Raised when calling store_in in a sub-class of Mongoid::Document
    #
    # @deprecated
    class InvalidStorageParent < MongoidError

      # Create the new error.
      #
      # @example Create the new error.
      #    InvalidStorageParent.new(Person)
      #
      # @param [ Class ] klass The model class.
      def initialize(klass)
        super(
          compose_message(
            "invalid_storage_parent",
            { klass: klass }
          )
        )
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mongoid-8.1.8 lib/mongoid/errors/invalid_storage_parent.rb
mongoid-8.1.7 lib/mongoid/errors/invalid_storage_parent.rb
mongoid-8.1.6 lib/mongoid/errors/invalid_storage_parent.rb
mongoid-8.1.5 lib/mongoid/errors/invalid_storage_parent.rb
mongoid-8.1.4 lib/mongoid/errors/invalid_storage_parent.rb
mongoid-8.1.3 lib/mongoid/errors/invalid_storage_parent.rb
mongoid-8.1.2 lib/mongoid/errors/invalid_storage_parent.rb
mongoid-8.1.1 lib/mongoid/errors/invalid_storage_parent.rb
mongoid-8.1.0 lib/mongoid/errors/invalid_storage_parent.rb