API Docs for: 0.2.0
Show:

Validator.Rules Class

A static class used to defined reusable rules. Each property defined on the root of this class are wrapped in Ember.Validator.Rule.

An example of adding more rules:

Ember.Validator.Rules.reopen({
  minLength: {
    min: 6,

    validate: function(value, options) {
      this.messageFormats = ['Minimum', options.min];
      return value.split('').length > options.min;
    },
    
    message: '%@2 of %@3 characters required.'
  }
});

Related: Validator.Rule, http://emberjs.com/api/classes/Ember.String.html#method_fmt

Item Index