diff --git a/generators/collection/index.js b/generators/collection/index.js index 4790da0a..176c6397 100644 --- a/generators/collection/index.js +++ b/generators/collection/index.js @@ -135,7 +135,7 @@ var CollectionGenerator = generators.Base.extend( return ( youtil.definedToString( this.options.modelName ) || answers.collectionName - || youtil.definedToString( this.options.collectionName ) + || this.templateData.collectionName ); }.bind( this )