Class: Mongoid::Slugs::Errors::UndefinedField

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

Instance Method Summary collapse

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