app/models/concerns/sluggable.rb
# Override this method to define which attribute the slug is created from, or
# have this method return false to use a random slug
Override this method to define which attribute the slug is created from, or
have this method return false to use a random slug
Override this method to define which attribute the slug is created from or have this method return false to use a random slug
def slug_attribute
    if respond_to?(:title)
      title
    elsif respond_to?(:name)
      name
    else
      raise Forest::Error.new("Slug attribute :title does not exist on #{self.class.name}. Define a `slug_attribute` method with a valid attribue.")
    end
  end
def slug_attribute if respond_to? ( :title ) title elsif respond_to? ( :name ) name else raise Forest :: Error . new ( "Slug attribute :title does not exist on #{self.class.name}. Define a `slug_attribute` method with a valid attribue." ) end end
Override this method to define which attribute the slug is created from, or
have this method return false to use a random slug
Override this method to define which attribute the slug is created from or have this method return false to use a random slug