View Source EctoAutoslugField.SlugGenerator (ecto_autoslug_field v3.1.0)
This module works with slugs itself. It is just a wrapper around 'Slugify'.
It is suited for inner use.
Summary
Functions
This is a public wrapper around do_build_slug/1
functions.
This function conditionally generates slug.
Functions
@spec build_slug(Keyword.t(), Ecto.Changeset.t() | nil) :: String.t() | nil
This is a public wrapper around do_build_slug/1
functions.
Default slug builder.
@spec maybe_generate_slug(Ecto.Changeset.t(), atom() | list(), Keyword.t()) :: Ecto.Changeset.t()
This function conditionally generates slug.
This function prepares sources and then calls do_generate_slug/3
.