Exception: Mongoid::Errors::InvalidField
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InvalidField
- Defined in:
- lib/mongoid/errors/invalid_field.rb
Overview
This error is raised when trying to create a field that conflicts with a Mongoid internal attribute or method.
Constant Summary
Constants inherited from MongoidError
Instance Method Summary collapse
-
#initialize(name) ⇒ InvalidField
constructor
A new instance of InvalidField.
Methods inherited from MongoidError
Constructor Details
#initialize(name) ⇒ InvalidField
Returns a new instance of InvalidField.
11 12 13 14 15 |
# File 'lib/mongoid/errors/invalid_field.rb', line 11 def initialize(name) super( translate("invalid_field", { :name => name }) ) end |