hakanensari/mongoid-slug — pull request #74 by digitalplaywright (2012-07-15 18:53:54+00:00)
Title: Backwards incompatible Mongoid 3.0 port: refactor to store all slugs in a single field of Array type

This is the refactor suggested by @hakensari in issue number #69. It is backwards incompatible because it stores all ids in a single array instead of an array field and a string field.

There are two features I would like to remove for simplicity, but that I did *not* remove here. The features are:
- Why is customizing the slug name through the ':as' option a desirable feature?
* you can not customize the id field name in Mongoid, and neither should the
alternate slugged id be changed.
- Why is it necessary to support a custom slug builder?

Notes:
- removed optional index. Mongoid is indexes the id by default
and a slug is just an alternate id the document can be found by.
- slug.last is the latest slug.