module AvramSlugify

Overview

Set an Avram::Atribute to a slugified version of another attribute or String.

See the README for guides.

Extended Modules

Defined in:

avram_slugify.cr

Constant Summary

VERSION = "0.2.1"

Instance Method Summary

Instance Method Detail

def set(slug : Avram::Attribute(String), using slug_candidate : Avram::Attribute(String) | String, query : Avram::Queryable) : Nil #

See the README for guides.


[View source]
def set(slug : Avram::Attribute(String), using slug_candidates : Array(String | Avram::Attribute(String) | Array(Avram::Attribute(String))), query : Avram::Queryable) : Nil #

See the README for guides.


[View source]