Class: Mongoid::Slugs::Errors::UndefinedField
- Inherits:
-
Errors::MongoidError
- Object
- Errors::MongoidError
- Mongoid::Slugs::Errors::UndefinedField
- Defined in:
- lib/mongoid/slugs.rb
Instance Method Summary collapse
-
#initialize(klass) ⇒ UndefinedField
constructor
A new instance of UndefinedField.
Constructor Details
#initialize(klass) ⇒ UndefinedField
Returns a new instance of UndefinedField.
52 53 54 |
# File 'lib/mongoid/slugs.rb', line 52 def initialize(klass) super "Sluggable field needs to be defined on #{klass.name} using :slug_on" end |