Module: Schnecke

Extended by:
ActiveSupport::Concern
Defined in:
lib/schnecke/schnecke.rb,
lib/schnecke/version.rb

Overview

Adds the necessary functionality for an ActiveRecord object to have a slug

See the README for usage instructions and details.

Defined Under Namespace

Modules: InstanceMethods

Constant Summary collapse

VERSION =
'0.5.1'
SCHNECKE_DEFAULT_SLUG_COLUMN =
:slug
SCHNECKE_DEFAULT_SLUG_SEPARATOR =
'-'
SCHNECKE_DEFAULT_MAX_LENGTH =
32
SCHNECKE_DEFAULT_REQUIRED_FORMAT =
/\A[a-z0-9\-_]+\z/