Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the docs for normalizeModelName so they explain the intent of … #4516

Merged
merged 1 commit into from
Aug 30, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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