lib/utils.js
function pluralForModel (model) {
  if (model.pluralModelName) {
    return model.pluralModelName
  }

  if (model.settings && model.settings.plural) {
    return model.settings.plural
  }

  if (
    model.definition &&
    model.definition.settings &&
    model.definition.settings.plural
  ) {
    return model.definition.settings.plural
  }

  return inflection.pluralize(model.sharedClass.name)
}
function pluralForModel (model) {
  if (model.pluralModelName) {
    return model.pluralModelName
  }

  if (model.settings && model.settings.plural) {
    return model.settings.plural
  }

  if (
    model.definition &&
    model.definition.settings &&
    model.definition.settings.plural
  ) {
    return model.definition.settings.plural
  }

  return inflection.pluralize(model.sharedClass.name)
}
function pluralForModel ( model ) { if ( model . pluralModelName ) { return model . pluralModelName } if ( model . settings && model . settings . plural ) { return model . settings . plural } if ( model . definition && model . definition . settings && model . definition . settings . plural ) { return model . definition . settings . plural } return inflection . pluralize ( model . sharedClass . name ) }
Returns the plural for a model.
@public
@memberOf {Utils}
@param {Object} model
@return {String}
Returns the plural for a model .