RISCfuture/slugalicious — Issue #4: scope not updated if slug already exists
Author: hazah
Created: 2011-12-31 20:21:29+00:00
State: open

```

Slug.transaction do
slugs.update_all(active: false)
slugs.where(slug: valid_slugs_in_use.first).update_all(active: true)
end
return

```

if the scope isn't already in the record, it does not seem to get saved. A new slug is not generated either.