model.js
function(options) {
    return function(err, resp) {
      if (err) {
        options.error(err);
      } else {
        options.success(resp);
      }
    };
  }
function(options) {
    return function(err, resp) {
      if (err) {
        options.error(err);
      } else {
        options.success(resp);
      }
    };
  }
function ( options ) { return function ( err , resp ) { if ( err ) { options . error ( err ) ; } else { options . success ( resp ) ; } } ; }
Responsible for setting attributes after a database call
Takes the mongodb response and calls the Backbone success method

@param {Object} options
@return {Function}
Responsible for setting attributes after a database call Takes the mongodb response and calls the Backbone success method