Commit Graph

60 Commits

Author SHA1 Message Date
Adam Meehan
e91d5a3404 default to datetime type using validates method 2010-08-02 18:13:04 +10:00
Adam Meehan
896fd83be5 remove duplication type_cast_value specs 2010-08-02 18:12:24 +10:00
Adam Meehan
fabb2be7af date/time select extension 2010-08-02 16:58:03 +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
d5124f32b2 use setup block to config which classes to extend 2010-08-01 23:27:25 +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
12b59739ad evaluate_option_value specs 2010-08-01 20:54:11 +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