<commit_before>var yeoman = require('yeoman-generator')
var inflection = require('inflection')
require('../../lib/propertised_base')

module.exports = yeoman.generators.PropertisedBase.extend({
  model: function() {
    var tableized = this.templateData.tableized
    var filename = inflection.singularize(tableized)

    this.template('model.coffee', 'collections/'+filename+'.coffee', this.templateData)
    this.template('model_publication.coffee', 'server/publications/'+tableized+'.coffee', this.templateData)
  },

  done: function() {
    this.log("Don't forget to subscribe via Meteor.subscribe('"+this.templateData.tableized+"')")
  }
})<commit_msg>Better post model message<commit_after>var yeoman = require('yeoman-generator')
var inflection = require('inflection')
require('../../lib/propertised_base')

module.exports = yeoman.generators.PropertisedBase.extend({
  model: function() {
    var tableized = this.templateData.tableized
    var filename = inflection.singularize(tableized)

    this.template('model.coffee', 'collections/'+filename+'.coffee', this.templateData)
    this.template('model_publication.coffee', 'server/publications/'+tableized+'.coffee', this.templateData)

    this.on('end', function() {
      this.log("")
      this.log("Subscribe to your model via:")
      this.log("  Meteor.subscribe('"+this.templateData.tableized+"')")
    })
  }
})
{'fraction_non_alphanumeric': 0.16075307748008688, 'fraction_numerical': 0.0, 'mean_word_length': 5.008695652173913, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1276307', 'n_tokens_mistral': 437, 'n_tokens_neox': 415, 'n_words': 67}