Okay I managed to crack it:
Person.validators.contexts[:default].find_all {|i| i.field_name ==
:smtp_email}
Could really be nice to have this as a convenience method though.
Would a patch of this sort be welcome in core?
--
You received this message because you are subscribed to the Google Groups
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/datamapper?hl=en.