Skip to content

Conversation

@graemenelson
Copy link

I added the ability to scope the slug with the option key validate_uniqueness_scope, it works like the normal validates_uniqueness_of scope option.

http://ar.rubyonrails.org/classes/ActiveRecord/Validations/ClassMethods.html#M000086

I also renamed the test from test_slug.rb to slug_test.rb so the "rake test" will work, and updated the gemspec definition to reflect this name change.

@tamaloa
Copy link

tamaloa commented May 17, 2011

Merging those improvements would be great - slug is just what I was looking for (explicitly do not want a slug history option as in friendly_id) except for the scope ability missing

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