Module: Pressroom::Sluggable

Extended by:
ActiveSupport::Concern
Included in:
Category, Post, Tag
Defined in:
app/models/concerns/pressroom/sluggable.rb

Overview

Slug generation that survives non-Latin titles.

ActiveSupport's parameterize drops Cyrillic entirely, so a Russian title would otherwise yield an empty slug. Transliteration runs first, through a configurable hook, using the rules the gem carries for :ru and :uk.

Constant Summary collapse

FALLBACK_SLUG =
"post"