Datamapper get_rules on related tables |
[eluser]WanWizard[/eluser]
The best and most flexible way to share validation rules between models is to use an extension. Load it (or autoload it), and make sure the method has a "rule_" prefix, so in this case "rule_format_name". See http://datamapper.wanwizard.eu/pages/val...stom.Rules |
Messages In This Thread |
Datamapper get_rules on related tables - by El Forum - 02-21-2013, 05:53 AM
Datamapper get_rules on related tables - by El Forum - 02-22-2013, 01:39 AM
Datamapper get_rules on related tables - by El Forum - 02-22-2013, 09:27 AM
Datamapper get_rules on related tables - by El Forum - 02-27-2013, 01:40 PM
Datamapper get_rules on related tables - by El Forum - 02-28-2013, 12:01 AM
|