Adam Meehan
|
3e1a9fc107
|
fix locale spec by adding time formats into dummy locale
|
2010-02-04 13:08:00 +11:00 |
|
Adam Meehan
|
d255bbfccf
|
deprecation warning example for :equal_to with messages silenced
|
2010-01-18 12:03:10 +11:00 |
|
Adam Meehan
|
f3c119e191
|
change equal_to to is_at to fix overlap with default rails message
|
2009-12-11 15:20:34 +11:00 |
|
Adam Meehan
|
f41016af93
|
spec for missing translation
|
2009-12-11 15:17:46 +11:00 |
|
Adam Meehan
|
78baa7a3cc
|
move default validator options to constant
|
2009-12-11 11:13:35 +11:00 |
|
Adam Meehan
|
a6712de5ff
|
use global error value formats if missing in locale
always loads globals value formats into class accessor
replace old format accessor methods class accessor
|
2009-12-11 11:06:21 +11:00 |
|
Adam Meehan
|
1b865cc834
|
split ignore_sec into own describe
|
2009-09-12 13:05:11 +10:00 |
|
Adam Meehan
|
df3283e5a1
|
fix ignore_usec for with_date and with_time options
|
2009-09-12 13:05:04 +10:00 |
|
Adam Meehan
|
d61dddfbc6
|
fix i18n locale load order to allow customisation
fix interpolation values for i18n
|
2009-06-19 12:06:36 +10:00 |
|
Adam Meehan
|
bb94e234bc
|
add :format option to validate and parse with specific a format
|
2009-04-10 10:57:27 +10:00 |
|
Adam Meehan
|
f4ed751c26
|
changed back to using error_value_formats for Rails 2.0/2.1
|
2009-03-28 19:51:11 +11:00 |
|
Adam Meehan
|
7967b5a212
|
refactored error value formats to use locale file for I18n. Rail 2.0/2.1 to use default_error_value_formats now.
moved default_error_messages_method into validator
|
2009-03-28 18:49:26 +11:00 |
|
Adam Meehan
|
312c1510cb
|
refactored AR parsing methods into Parser module to reduce AR method pollution and make more consistent
|
2009-03-28 17:25:48 +11:00 |
|
Adam Meehan
|
d1ee94248b
|
added :equal_to and :ignore_usec options. the later is for ignore microsecond value in datetime restrictions
|
2009-03-19 20:49:06 +11:00 |
|
Adam Meehan
|
862b41f903
|
added :with_date and :with_time options
refactored restriction_value into evaluate_option_value class method for more general usage
refactored type_cast_value into class method
|
2009-02-09 16:44:03 +11:00 |
|
Adam Meehan
|
7ef9078369
|
use the value from validates_each in validator
|
2009-02-08 12:46:22 +11:00 |
|
Adam Meehan
|
a1ae5f9313
|
added option key validation to prevent silly validation problems due to bad key name
|
2009-02-01 20:08:07 +11:00 |
|
Adam Meehan
|
011ea070db
|
fix interpolation_values examples for rails version without i18n
|
2009-01-12 13:03:21 +11:00 |
|
Adam Meehan
|
b632093ce2
|
add examples for custom_error_messages and interpolation values. what can I say? TATFT
|
2009-01-12 12:36:37 +11:00 |
|
Adam Meehan
|
45ab815039
|
added between option and some refactoring
|
2009-01-01 20:11:30 +11:00 |
|
Adam Meehan
|
64ffb52dae
|
spec text tweaks
|
2008-12-06 14:27:20 +11:00 |
|
Adam Meehan
|
87b0beef5a
|
moved ignore_restriction_errors and error_value_formats into Validator class
|
2008-12-05 20:24:06 +11:00 |
|
Adam Meehan
|
6cd6cd9dc0
|
made restriction_value instance method as it relies on validator instance attribute type
removed old type_cast_method class method
|
2008-12-05 18:45:28 +11:00 |
|
Adam Meehan
|
4868746e94
|
refactor specs from validation_methods to validator and refactored to make much more sense
|
2008-12-05 18:23:39 +11:00 |
|
Adam Meehan
|
b0647d456e
|
refactored validations in validation methods for model and validator class
|
2008-11-30 07:40:11 +11:00 |
|