Module: Acts::Sluggable::InstanceMethods

Defined in:
lib/acts_as_sluggable/acts/sluggable.rb

Instance Method Summary collapse

Instance Method Details

#generate_slug(method, slug_field_name) ⇒ Object



51
52
53
# File 'lib/acts_as_sluggable/acts/sluggable.rb', line 51

def generate_slug(method, slug_field_name)
  self.send("#{slug_field_name.to_s}=", self.send(method).parameterize)
end