class Mongoid::Errors::InvalidCollection

This error is raised when trying to access a Mongo::Collection from an embedded document.

@example Create the error.

InvalidCollection.new(Address)

Public Class Methods

new(klass) click to toggle source
Calls superclass method
# File lib/mongoid/errors/invalid_collection.rb, line 13
def initialize(klass)
  super(
    compose_message("invalid_collection", { klass: klass.name })
  )
end