View Source ExCatalog.Manufacturer (ex_catalog v1.5.6)

Link to this section Summary

Link to this section Functions

Link to this function

build_slug(sources, changeset)

View Source
Link to this function

force_generate_slug(changeset)

View Source
Link to this function

get_sources(changeset, opts)

View Source
Link to this function

maybe_generate_slug(changeset)

View Source
Link to this function

new(params \\ %{}, struct \\ %ExCatalog.Product{})

View Source

Create a New Manufacturer

examples

Examples

iex> manufacturer = %{title: "test Manufacturer", description: "test Manufacturers"}
iex> ExCatalog.Manufacturers.new(manufacturer)
Link to this function

unique_constraint(changeset, opts \\ [])

View Source