 
   @backedUp = {}
   schema: -> return @constructor.schema
-    
+
   getValidationErrors: ->
     errors = tv4.validateMultiple(@attributes, @constructor.schema or {}).errors
     return errors if errors?.length

      noty text: "#{errorMessage}: #{res.status} #{res.statusText}", layout: 'topCenter', type: 'error', killer: false, timeout: 10000
    @trigger "save", @
    return super attrs, options
    
  patch: (options) ->
    return false unless @_revertAttributes
    options ?= {}
    options.patch = true
    
    attrs = {_id: @id}
    keys = []
    for key in _.keys @attributes
      unless _.isEqual @attributes[key], @_revertAttributes[key]
        attrs[key] = @attributes[key]
        keys.push key
    
    return unless keys.length
    console.debug 'Patching', @get('name') or @, keys
    @save(attrs, options)

      for error in errors
        console.debug "\t", error.dataPath, ":", error.message
      return errors

  save: (attrs, options) ->
    options ?= {}
    options.headers ?= {}
