lib/base/validations.js
function(resolve) {
    var self = this
    return this.validate()
      .then(function() {
        return true
      })
      .catch(function(error) {
        if (error instanceof self.store.ValidationError) return false
        throw error
      })
      .then(resolve)
  }
function(resolve) {
    var self = this
    return this.validate()
      .then(function() {
        return true
      })
      .catch(function(error) {
        if (error instanceof self.store.ValidationError) return false
        throw error
      })
      .then(resolve)
  }
function ( resolve ) { var self = this return this . validate ( ) . then ( function ( ) { return true } ) . catch ( function ( error ) { if ( error instanceof self . store . ValidationError ) return false throw error } ) . then ( resolve ) }
validates the record and returns true or false

@class Record
@method validate

@this Promise
validates the record and returns true or false