code: function config(name, options) {
      if (isObject(name)) {
        extend(global, name);
        return;
      }
      var previous = (registry[name] && registry[name].$config) ? registry[name].$config() : null,
          base = extend({}, previous ? extend({}, previous) : extend({}, DEFAULTS, DEFAULT_METHODS));
  
      options = deepExtend(copy(base), options);
  
      if (!options.url) {
        options.url = global.base.replace(/\/$/, '') + '/' + hyphenate(name);
      }
      registry[name] = new ModelClass(options);
    }
docs: Configures a new model, updates an existing model's settings, or updates global settings