Methods

Class/Module Index [+]

Quicksearch

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
# File lib/mongoid/errors/invalid_collection.rb, line 10
def initialize(klass)
  super(
    translate("invalid_collection", { :klass => klass.name })
  )
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.