CakeDC/utils — pull request #36 by designway (2012-03-03 13:06:22+00:00)
Title: 2.0

Updated Sluggable behavior

- Posible to make use of the Inflector::slug() in settings
- Posible to save lowercase slugs
- Fixed a bug on unique slugs, now using regex search

I had problems when i add a slug named **Fourth Art**

id
title
slug
expected slug

1
Fourth Article
fourth_article

2
Fourth Article!!
fourth_article_1

3
Fourth "Article"
fourth_article_2

4
Fourth Art
fourth_art_1
fourth_art

When i add **Fourth Art**, the sluggable behavior generates a slug called: **fourth_art_1**
I espected only **fourth_art**, and not with a extra -index.

I resolved that with my commits, testcase is updated.