This project is archived and is in readonly mode.
validates_uniqueness , accepting white space
-
Dan Pickett
- Tag changed from validates_uniqueness to bugmash, validates_uniqueness
- Assigned user cleared.
-
Josh Kalderimis
-1
I do not agree with this change, adding striping to validates_uniqueness_of does not seem consistent when compared to presence_of and other validators. Stripping is separate issue which should be individual of the validators.
-
Ryan Bigg
- State changed from new to open
-1 This is not a wide enough use-case to be a patch to rails. You should make this a plugin.
-
Dan Pickett
-1 bloat for an isolated use case - a custom validator and even a gem/plugin should be a cinch to roll with some of the new functionality in Rails 3
-
Rohit Arondekar
-1 This feature would be better implemented separately, maybe as a plugin/gem. Removing whitespace should not be the job of validates_uniqueness.
-
Anil Wadghule
-1 Not needed along with validates_uniqueness. Custom validator/plugin/gem would be helpful.
-
Jeff Kreeftmeijer
-1
As said, would be cool as a plugin. Let's let
validates_uniqueness_ofjust validate uniqueness :)