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

Generate slug if slug_column is blank on update #4

Merged
merged 3 commits into from
Jan 10, 2012

Conversation

jordanbyron
Copy link
Contributor

Feel free to close this out if you don't want this functionality in the gem. For most use cases this shouldn't apply. It does however come in handy when the gem is added after records have been created. With this change in place it's easy to generate slugs for those existing records:

MODEL.find_each { |model| model.save }

sfaxon added a commit that referenced this pull request Jan 10, 2012
Generate slug if slug_column is blank on update
@sfaxon sfaxon merged commit 2212edd into sfaxon:master Jan 10, 2012
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.

None yet

2 participants