Adam Meehan
6e67d45274
Validation support for ActiveModel::Validations without a shim
...
move validation helpers into ActiveModel::Validations for default base support
add check if attribute methods shim is being used
refactor specs for helper and attribute methods separation
more mongoid workarounds due to incorrect use of AS::Concern
2010-09-29 08:09:43 +10:00
Adam Meehan
ea082b5258
use I18n default value when missing value for error value format
2010-09-27 16:53:54 +10:00
Adam Meehan
f41903a769
refactored to get attribute type from model types not validation type
...
reverts to behaviour of old version which allows you to define validations
of any type for sake of the values it is validating against
2010-09-24 12:00:15 +10:00
Adam Meehan
0df3886804
fix validator for :format option
2010-09-21 20:15:26 +10:00
Adam Meehan
716f9e4f2e
format option added back
2010-09-17 13:45:56 +10:00
Adam Meehan
8aa26a7898
ignore_usec option added back
2010-09-17 13:45:31 +10:00
Adam Meehan
7243456b76
remove spec guff
2010-08-31 13:27:36 +10:00
Adam Meehan
2f3efa2107
custom error message options
2010-08-31 13:23:07 +10:00
Adam Meehan
728439201d
fix validator spec
2010-08-31 12:46:33 +10:00
Adam Meehan
b22a7c41b8
add validator type accessor
2010-08-03 15:07:23 +10:00
Adam Meehan
40e404681e
type cast value before blank check for invalid values
2010-08-03 15:04:59 +10:00
Adam Meehan
e91d5a3404
default to datetime type using validates method
2010-08-02 18:13:04 +10:00
Adam Meehan
924ba64b00
fix spec
2010-08-02 08:41:15 +10:00
Adam Meehan
666afb2358
Validator#format_error_value from i18n
2010-08-02 08:40:51 +10:00
Adam Meehan
6acf61aa88
ignore restriction value errors
2010-08-01 23:26:23 +10:00
Adam Meehan
70b16b875c
:between option fix and spec
2010-08-01 20:54:50 +10:00
Adam Meehan
fdc3086976
initial Rails 3 rewrite commit
...
completely rewritten for ActiveModel compatibility
uses ActiveModel EachValidator class as validator base class
simplifies :between by splitting into a :on_or_before and an :on_of_after
only :is_at option tested
2010-08-01 18:35:18 +10:00