Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing a bug with generating unique slugs #23

Merged
merged 1 commit into from
May 12, 2011

Conversation

jbredeche
Copy link

Hi, this patch fixes a bug where after slugname-10, the next generated slug would still be slugname-10.

The existing slugs were being sorted alphabetically, and thus mongoid-slug thought that slugname-9 was the highest value, and would try to generate slugname-10.

thanks!
jean

hakanensari added a commit that referenced this pull request May 12, 2011
fixing a bug with generating unique slugs
@hakanensari hakanensari merged commit 73b0901 into mongoid:master May 12, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants