From c45ea65471d2304c8adef43a276e8d5db6a72466 Mon Sep 17 00:00:00 2001 From: bmac Date: Fri, 26 Aug 2016 13:43:41 -0400 Subject: [PATCH] Update the docs for normalizeModelName so they explain the intent of the function --- addon/-private/system/normalize-model-name.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/addon/-private/system/normalize-model-name.js b/addon/-private/system/normalize-model-name.js index 4921ca79782..f885e5ddd61 100644 --- a/addon/-private/system/normalize-model-name.js +++ b/addon/-private/system/normalize-model-name.js @@ -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) {