Module: Acts::Slugoid::InstanceMethods

Defined in:
lib/slugoid/acts/slugoid.rb

Instance Method Summary collapse

Instance Method Details

#generate_slug(method, slug_field_name) ⇒ Object



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

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