Skip to content

Commit

Permalink
Update the docs for normalizeModelName so they explain the intent of …
Browse files Browse the repository at this point in the history
…the function
  • Loading branch information
bmac committed Aug 26, 2016
1 parent 79c81a5 commit bf28602
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions addon/-private/system/normalize-model-name.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import Ember from 'ember';

// All modelNames are dasherized internally. Changing this function may
// require changes to other normalization hooks (such as typeForRoot).

/**
All modelNames are dasherized internally. Changing this function may
require changes to other normalization hooks (such as typeForRoot).
This method normalizes a modelName into the format Ember Data uses
internally.
@method normalizeModelName
@public
@param {String} modelName
@return {String} if the adapter can generate one, an ID
@return {String} normalizedModelName
@for DS
*/
export default function normalizeModelName(modelName) {
Expand Down

0 comments on commit bf28602

Please sign in to comment.