Module: Mongoid::Translate::Slug::ClassMethods

Defined in:
lib/mongoid/translate/slug.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#sluggedObject

Returns the value of attribute slugged.



38
39
40
# File 'lib/mongoid/translate/slug.rb', line 38

def slugged
  @slugged
end

Instance Method Details

#slug_field(slug_field) ⇒ Object

Defines slug field.



42
43
44
# File 'lib/mongoid/translate/slug.rb', line 42

def slug_field(slug_field)
  self.slugged = slug_field
end