Adam Meehan
712c1dd603
expand example
2010-08-07 19:10:10 +10:00
Adam Meehan
82ede60985
restriction shorthand symbols
2010-08-07 19:08:35 +10:00
Adam Meehan
924c6766c1
renamed to enable_multiparameter_extension!
2010-08-03 23:27:46 +10:00
Adam Meehan
4028413631
multiparameter value handler
2010-08-03 23:22:27 +10:00
Adam Meehan
0f41671b32
multiparameter extension for AR
2010-08-03 22:59:29 +10:00
Adam Meehan
81030a6ed8
show restriction errors in Rails test mode by default.
...
or always if not using Rails
2010-08-03 18:28:00 +10:00
Adam Meehan
048bf3ba6c
generate local file on install rather than load
2010-08-03 18:27:35 +10:00
Adam Meehan
300bd96056
readme
2010-08-03 15:18:19 +10:00
Adam Meehan
6521cf0318
changelog
2010-08-03 15:14:30 +10:00
Adam Meehan
b22a7c41b8
add validator type accessor
2010-08-03 15:07:23 +10:00
Adam Meehan
7117a5ef22
reset employee class in specs
2010-08-03 15:06:51 +10:00
Adam Meehan
40e404681e
type cast value before blank check for invalid values
2010-08-03 15:04:59 +10:00
Adam Meehan
34a2d4b558
methods for validated attributes for write cache and before type cast
...
cache raw value in @attributes_cache which is AR convention but should
work fine with non-AR ORM
before type cast method for reading back cached raw value
2010-08-03 15:01:57 +10:00
Adam Meehan
6bed71152a
add validation methods as instance methods as well per AM
2010-08-03 14:56:59 +10:00
Adam Meehan
34379e1e15
lil tweak
2010-08-02 19:34:50 +10:00
Adam Meehan
b5661bacec
remaining specs for validator options
2010-08-02 19:26:41 +10:00
Adam Meehan
bbde35bf89
readmen tweaks
2010-08-02 18:13:41 +10:00
Adam Meehan
3c8e5c16fc
shorthand spec_helper require
2010-08-02 18:13:21 +10:00
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
e06054dd4c
readme updates
2010-08-02 17:00:45 +10:00
Adam Meehan
7c281d3497
date time select extension in generator
2010-08-02 16:58:20 +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
8e2a07a4b9
changelog
2010-08-02 00:03:27 +10:00
Adam Meehan
068ffe39e2
add plugin init.rb
2010-08-02 00:02:01 +10:00
Adam Meehan
43f13cbe80
add basic readme
2010-08-02 00:01:50 +10:00
Adam Meehan
ca40dbe923
install generator with config template
2010-08-01 23:40:42 +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
0720abeb0e
add locale file to I18n load path
2010-08-01 23:22:50 +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
41c895c0d9
use restriction instead of check
2010-08-01 20:53:41 +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