Commit Graph

11 Commits

Author SHA1 Message Date
Adam Meehan
969edfcb83 Helper method spec 2011-09-18 18:33:29 +10:00
Adam Meehan
316086e76f ruby 1.9.2 spec fixes for instance method checks 2010-10-14 07:55:35 +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
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
6220ae7b43 add validation method check to each ORM 2010-09-23 08:13:37 +10:00
Adam Meehan
29057c41f7 use Person for non-ORM specific specs 2010-09-21 20:14:51 +10:00
Adam Meehan
423d60f885 use inheritable hash for valdiated attributes 2010-09-17 10:56:13 +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
1bc579f861 instance validation spec 2010-08-07 19:10:36 +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