Module: ContentfulRails::Sluggable

Extended by:
ActiveSupport::Concern
Defined in:
lib/contentful_rails/sluggable.rb

Instance Method Summary collapse

Instance Method Details

#slugObject



12
13
14
15
16
# File 'lib/contentful_rails/sluggable.rb', line 12

def slug
  if self.class.slug_field.present?
    self.send(self.class.slug_field).parameterize(ContentfulRails.configuration.slug_delimiter)
  end
end