code: function (target) {
      if (this.get('isResource') && !this.get('indexChild')) {
        // add index route if it does not exist
        this._route('index');
      }
      this.get('children').forEach(function (meta) {
        var args, methodName, isResource;
        args = [meta.get('name'), {path: meta.get('path')}];
        methodName = meta.get('methodName');
        isResource = meta.get('isResource');
        if (isResource) {
          args.push(meta.get('mapFunction'));
        }
        console[isResource && console.group ? 'group' : 'log'](
          '[enhanced-router] defining ' + meta
        );
        target[methodName].apply(target, args);
        if (isResource && console.group) {
          console.groupEnd();
        }
      });
    }
docs: The method doing the call as Router.map is expecting
  
  @method map
  @param {Ember.Router.recognizer} target