Module: Sluggable::ClassMethods

Defined in:
lib/sluggable_rw.rb

Instance Method Summary collapse

Instance Method Details

#sluggable_column(field) ⇒ Object

the method could be called within the mixin class and pass in argument for module



12
13
14
15
# File 'lib/sluggable_rw.rb', line 12

def sluggable_column(field)
  # use slug_column the class attribute to store and access the passed in argument
  self.slug_column = field
end