Class: Mongoid::Slugs::Errors::UnrecognizedField
- Inherits:
-
Errors::MongoidError
- Object
- Errors::MongoidError
- Mongoid::Slugs::Errors::UnrecognizedField
- Defined in:
- lib/mongoid/slugs.rb
Instance Method Summary collapse
-
#initialize(klass, field) ⇒ UnrecognizedField
constructor
A new instance of UnrecognizedField.
Constructor Details
#initialize(klass, field) ⇒ UnrecognizedField
Returns a new instance of UnrecognizedField.
58 59 60 |
# File 'lib/mongoid/slugs.rb', line 58 def initialize(klass, field) super "#{klass.name} needs to have #{field.to_sym} defined as a field to create a slug from it" end |