不要怂,就是干,撸起袖子干!

  1. 24 May, 2013 3 commits
    • Put model errors alongside field errors by validation name · 05a8ac72
      Instead of a hash called __model with the model validation errors, the
      model validation errors are now alongside the field validation keys of
      the hash, named after the validation's key in the validate array. To be
      as consistent as possible, the value is an array even though it will
      only ever have one member. The structure is set to change in 2.0.
      
      Example: where there was a model validation set up like
      
      	validate: {
      		xnor: function() {
      			if (this.field1 === null) === (this.field2 === null) {
      				throw new Error('require both or neither')
      			}
      		}
      	}
      
      and field1 and field2 have some validations, validate() might return
      something like
      
      	{
      		field1: [
      			'must be an email address',
      			'email address must be @example.com'
      		],
      		xnor: ['require both or neither']
      	}
      Bart Nagel committed
    • remove unneccessary semicolon · 47591d75
      Bart Nagel committed
  2. 22 May, 2013 8 commits
  3. 21 May, 2013 1 commit
  4. 20 May, 2013 6 commits
  5. 19 May, 2013 4 commits
  6. 17 May, 2013 1 commit
  7. 16 May, 2013 1 commit
  8. 15 May, 2013 4 commits
  9. 14 May, 2013 12 commits