diff --git a/lib/mongoid/slug.rb b/lib/mongoid/slug.rb index 70c5c21..1f34b49 100644 --- a/lib/mongoid/slug.rb +++ b/lib/mongoid/slug.rb @@ -307,7 +307,7 @@ def new_with_slugs? def persisted_with_slug_changes? if localized? changes = _slugs_change - return (persisted? && false) if changes.nil? + return false if changes.nil? # ensure we check for changes only between the same locale original = changes.first.try(:fetch, I18n.locale.to_s, nil)