digitalplaywright/mongoid-slug — pull request #83 by digitalplaywright (2012-09-13 18:21:26+00:00)
Title: API Change: Pass model object to custom slug builder

When using built-in stringex-based slug generation:

```
slug :field_used_in_slug_generation
```

For custom slug generation:

```
slug do |cur_object|
"#{cur_object.name}-#{cur_object.authors.map{|a| cur_object.name.parametrize}.join('-')}"
end
```