ecto_autoslug_field v0.1.3 EctoAutoslugField.SlugGenerator

This module works with slugs itself. It is just a wrapper around ‘Slugger’.

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

build_slug(sources)

Specs

build_slug(Keyword.t) :: String.t

This is a public wrapper around do_build_slug/1 functions.

Default slug builder.

maybe_generate_slug(changeset, source, opts)

Specs

maybe_generate_slug(Changeset.t, atom | list, Keyword.t) :: Changeset.t

This function conditionally generates slug.

This function prepares sources and then calls do_generate_slug/3.