utility/aliased/aliased_protocol.js
function () {
  /**
   * Returns inflected values from a string ie. application => applications, Application, etc.
   * @param  {Object} options Configurable options
   * @param {string} options.model_name String that should be inflected
   * @return {Object}         Object containing inflected values indexed by type of inflection
   */
  return function getViewModelProperties (options = {}) {
    let model_name = options.model_name;
    let viewmodel = {
      name: model_name,
      name_plural: pluralize(model_name)
    };
    return Object.assign(viewmodel, {
      capital_name: capitalize(model_name),
      page_plural_title: capitalize(viewmodel.name_plural),
      page_plural_count: `${ viewmodel.name_plural }count`,
      page_plural_query: `${ viewmodel.name_plural }query`,
      page_single_count: `${ model_name }count`,
      page_pages: `${ model_name }pages`
    });
  };
}
function () {
  /**
   * Returns inflected values from a string ie. application => applications, Application, etc.
   * @param  {Object} options Configurable options
   * @param {string} options.model_name String that should be inflected
   * @return {Object}         Object containing inflected values indexed by type of inflection
   */
  return function getViewModelProperties (options = {}) {
    let model_name = options.model_name;
    let viewmodel = {
      name: model_name,
      name_plural: pluralize(model_name)
    };
    return Object.assign(viewmodel, {
      capital_name: capitalize(model_name),
      page_plural_title: capitalize(viewmodel.name_plural),
      page_plural_count: `${ viewmodel.name_plural }count`,
      page_plural_query: `${ viewmodel.name_plural }query`,
      page_single_count: `${ model_name }count`,
      page_pages: `${ model_name }pages`
    });
  };
}
function ( ) { /**
   * Returns inflected values from a string ie. application => applications, Application, etc.
   * @param  {Object} options Configurable options
   * @param {string} options.model_name String that should be inflected
   * @return {Object}         Object containing inflected values indexed by type of inflection
   */ return function getViewModelProperties ( options = { } ) { let model_name = options . model_name ; let viewmodel = { name : model_name , name_plural : pluralize ( model_name ) } ; return Object . assign ( viewmodel , { capital_name : capitalize ( model_name ) , page_plural_title : capitalize ( viewmodel . name_plural ) , page_plural_count : ` ${ viewmodel . name_plural } ` , page_plural_query : ` ${ viewmodel . name_plural } ` , page_single_count : ` ${ model_name } ` , page_pages : ` ${ model_name } ` } ) ; } ; }
Creates a function that will get inflected values from a given string
@return {Function} A function that will get inflected values from a given string
Creates a function that will get inflected values from a given string