This project is archived and is in readonly mode.
validates_length_of does not accept custom messages when :within used
-
Emilio Tagua
- Tag changed from 2.1, activerecord, validation to 2.1, activerecord, patch, validation
Here is the patch to add custom message to vlo when using :in or :within option.
-
Emilio Tagua
Patch for version 2.1.1
-
Emilio Tagua
Edge patch, since this is actually not working on edge either.
-
Pratik
- Assigned user set to Pratik
- State changed from new to incomplete
Hey Emilio,
That looks good. I think we need to have a test case for :within as well.
Catch me in IRC and we'll get this going.
Thanks!
-
Emilio Tagua
Pratik,
As we spoke in IRC some time ago the :within tests is redundant since it's an alias from :in.
-
Pratik
- State changed from incomplete to open
- Assigned user changed from Pratik to Michael Koziarski
-
Repository
- State changed from open to committed
(from [2b8be761e476c103e94f8567c3880ea7363dfec0]) validate_length_of should use custom message if given when using in or within.
Signed-off-by: Michael Koziarski michael@koziarski.com [#1057 validates_length_of does not accept custom messages when :within used state:committed] http://github.com/rails/rails/co...
