function modelName(model) {
  let name = '<Unknown model>';
  if (model.toString) {
    name = model.toString();
  }

  if (name.length > 50) {
    name = `${name.slice(0, 50)}...`;
  }
  return name;
}
Returns a medium sized model name. Makes sure it's maximum 50 characters long.

@method modelName
@param  {Any} model
@return {String}       The model name.