CakeDC/utils — pull request #51 by cjsaylor (2012-10-06 12:19:23+00:00)
Title: Added check for existance of slug field in sluggable behavior.

I have many models that have use for the sluggable behavior in my app, so to keep DRY, I added to the app model. However, some of my models do not have the configured "slug" column, but do have a "name" column on occasion. This would fail a save due to not having the slug column to check for uniqueness.

I add a simple `hasField` check on the configured slug column on the model in `beforeSave` to stop the behavior from going forward in these cases.