norman/friendly_id — Issue #200: Separate slug sequencing from slug generation
Author: norman
Created: 2011-12-19 15:24:00+00:00
State: open

The current slugging code confuses and mixes the concepts of sequencing and generation. Ideally it should be possible for a developer to provide their own uniqueness resolution strategy other than simple adding a sequence.

Also, it's sometimes necessary to lock the model's table in order to properly sequence. Some non-locking solution should be provided - in previous FriendlyId this was done by making the sequence an external column, but this changed in 4.0 to provide more user-friendliness.

This is probably the worst area of FriendlyId's codebase and needs a good look-over.