Parent

Methods

Class/Module Index [+]

Quicksearch

Mongoid::Errors::InvalidField

This error is raised when trying to create a field that conflicts with a Mongoid internal attribute or method.

@example Create the error.

InvalidField.new('collection')

Public Class Methods

new(name) click to toggle source
# File lib/mongoid/errors/invalid_field.rb, line 10
def initialize(name)
  super(
    translate("invalid_field", { :name => name })
  )
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.