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

Use regexp to find unique slug #16

Merged
merged 7 commits into from Apr 2, 2011
Merged

Use regexp to find unique slug #16

merged 7 commits into from Apr 2, 2011

Conversation

tiendung
Copy link
Contributor

@tiendung tiendung commented Apr 1, 2011

I use regexp to avoid multiple database requests while finding unique slug. You may interested.

@hakanensari
Copy link
Collaborator

Makes absolute sense. Will pull in shortly. Thanks.

@tiendung
Copy link
Contributor Author

tiendung commented Apr 1, 2011

I refactored a little bit and added more comments. Please check at https:/vinova/mongoid-slug/commit/e6a248bd961112c58385e92c1778b819c368aa25.

@hakanensari hakanensari merged commit bf7b220 into mongoid:master Apr 2, 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.

2 participants