code: function() {
          var self = this;
          var containerDebugAdapter = this.get('containerDebugAdapter');
          var types;
  
          if (containerDebugAdapter.canCatalogEntriesByType('model')) {
            types = containerDebugAdapter.catalogEntriesByType('model');
          } else {
            types = this._getObjectsOnNamespaces();
          }
  
          // New adapters return strings instead of classes
          types = emberA(types).map(function(name) {
            return {
              klass: self._nameToClass(name),
              name: name
            };
          });
          types = emberA(types).filter(function(type) {
            return self.detect(type.klass);
          });
  
          return emberA(types);
        }
docs: Fetches all models defined in the application.
  
  @private
  @method getModelTypes
  @return {Array} Array of model types