norman/friendly_id — pull request #541 by arnvald (2014-03-21 10:59:24+00:00)
Title: Fix regenerating slug when regeneration condition overriden (fixes #521)

Currently the scope excluding updated object is applied when checking candidates
only if slug column is changed. This does not work in case when
should_generate_new_friendly_id? is overriden. This commit fixes the problem
by always excluding updated object from checking candidates

Here's the issue: https://github.com/norman/friendly_id/issues/521