-
Committer:
Gustavo Niemeyer
-
Date:
2008-04-16 20:05:08 UTC
-
mto:
(222.1.1 validator)
-
mto:
This revision was merged to the branch mainline in
revision
223.
-
Revision ID:
gustavo@niemeyer.net-20080416200508-56js7xuxh4c0g9pb
A validator function may now be passed to any property, and it will be
called before the variable is assigned a non-DB value. Validator
functions look like validate(object, attr_name, value), and they should
return the value to be used on the assignment (may be the original
value itself, if changing it isn't wanted).