Adam Meehan
ac98978441
Better timeliness_type_cast_code
2011-05-09 07:43:41 +10:00
Adam Meehan
ea7c9ec7be
Type caste to Date for date columns in AR after parsing string in attribute writer
2011-04-27 07:37:26 +10:00
Adam Meehan
7b5b11ad63
use class_attribute again, now that I know how to use it safely
2011-01-22 10:47:22 +11:00
José Valim
889b5a9b07
Move timeliness defined methods to a module so they can be overwritten.
2010-11-01 14:56:03 -02:00
Adam Meehan
2c6df945ec
remove old parser and use timeliness gem
2010-10-14 18:57:53 +11:00
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
ff555eb293
refactored raw value cache to be more explicit
2010-09-24 14:19:25 +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
bf57efaaa6
include timezone awareness option for attribute parsing
2010-09-21 18:27:12 +10:00
Adam Meehan
c8ad4cd525
use inheritable hash again as class_attribute doesn't clone hash for subclass
2010-09-21 18:26:30 +10:00
Adam Meehan
27e01486e9
actually use the plugin parser in the write method (yikes)
2010-09-21 08:36:11 +10:00
Adam Meehan
9ddd150b2f
change ORM attribute generation and extension mechanism
...
now using shim since the attribute matcher is not required for AM
2010-09-16 22:33:22 +10:00
Adam Meehan
e3928e78eb
fixe for attribute write and raw value methods
...
add new generalised method to get raw value without dependence on
before_type_cast which may not be supported in ORMs
call super to define full ORM write method default
2010-08-11 13:45:06 +10:00
Adam Meehan
30fb0e5192
before_type_cast fix for ORMs not using it wont create
2010-08-10 15:41:53 +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