[patch] Support for mulitiple :scope_to attributes in should_require_unique_attributes
Reported by Murray Steele | May 20th, 2008 @ 06:15 AM
ActiveRecord allows multiple attributes to be specified in the :scope option to validates_uniqueness_of. It makes sense therefore that should_require_unique_attributes should do the same for the :scoped_to option.
The attached patch provides that support.
Comments and changes to this ticket
-
Murray Steele May 20th, 2008 @ 07:02 AM
- no changes were found...
-
-
Murray Steele May 21st, 2008 @ 04:52 AM
Now on it's own github fork (with #35). See http://github.com/h-lame/shoulda...
-
Tammer Saleh June 26th, 2008 @ 04:07 PM
- → State changed from new to refused
- → Tag changed from to active_record_helper should_require_unique_attributes
Hi Murray,
I appreciate the patch, but I think this falls into the 20%, where a hand written should statement would be more clear than using the macros.
Tammer
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
