Module: Sluggable::ClassMethods

Defined in:
lib/sluggable_mjvezzani_aug.rb

Instance Method Summary collapse

Instance Method Details

#sluggable_column(col_name) ⇒ Object

This allows for sluggable_column(:title), or sluggable_column(:name) to be called in the model and enables the generate_slug method to work.



45
46
47
# File 'lib/sluggable_mjvezzani_aug.rb', line 45

def sluggable_column(col_name)
  self.slug_column = col_name
end