lib/base/attributes.js
function() {
    this.checkObjectChanges()
    var tmp = {}
    for (var name in this.changes) {
      if (this.changes.hasOwnProperty(name)) {
        if (
          !this.allowed_attributes ||
          (this.allowed_attributes &&
            this.allowed_attributes.indexOf(name) !== -1)
        ) {
          tmp[name] = this.changes[name]
        }
      }
    }
    return tmp
  }
function() {
    this.checkObjectChanges()
    var tmp = {}
    for (var name in this.changes) {
      if (this.changes.hasOwnProperty(name)) {
        if (
          !this.allowed_attributes ||
          (this.allowed_attributes &&
            this.allowed_attributes.indexOf(name) !== -1)
        ) {
          tmp[name] = this.changes[name]
        }
      }
    }
    return tmp
  }
function ( ) { this . checkObjectChanges ( ) var tmp = { } for ( var name in this . changes ) { if ( this . changes . hasOwnProperty ( name ) ) { if ( ! this . allowed_attributes || ( this . allowed_attributes && this . allowed_attributes . indexOf ( name ) !== - 1 ) ) { tmp [ name ] = this . changes [ name ] } } } return tmp }
Returns an object with all the changes. One attribute will always include the original and current value

@class Record
@method getChanges

@return {object}
Returns an object with all the changes . One attribute will always include the original and current value