Class: Mongoid::Slugs::Errors::UnrecognizedField

Inherits:
Errors::MongoidError
  • Object
show all
Defined in:
lib/mongoid/slugs.rb

Instance Method Summary collapse

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