norman/friendly_id — Issue #218: On save, new slug is assigned if there's another instance with same name
Author: elado
Created: 2012-01-23 02:16:17+00:00
State: open

Using latest version.

Example:

```
p = Product.create(name: "x")
p2 = Product.create(name: "x")

p.slug	# => "x"
p2.slug	# => "x--2"

Product.find(p.id).save!
Product.find(p.id).slug	# => "x--3", should remain "x"

Product.find(p2.id).save!
Product.find(p2.id).slug	# => "x--4", should remain "x--2"
```

It increases the slug number when not necessary.