core/Validator.js
function addRules(rules) {
        _.each(rules, function (rule) {
            _global.rules[rule.id] = rule;
        });
    }
function addRules(rules) {
        _.each(rules, function (rule) {
            _global.rules[rule.id] = rule;
        });
    }
function addRules ( rules ) { _ . each ( rules , function ( rule ) { _global . rules [ rule . id ] = rule ; } ) ; }
Add validation rules

@param {Array.<Object>} rules
Add validation rules