DS.BuildURLMixin#pathForType()

pathForType (modelName) String Defined in addon/-private/adapters/build-url-mixin.js:410 Determines the pathname for a given type. By default, it pluralizes the type's name (for example, 'post' becomes 'posts' and 'person' becomes 'people'). Pathname customization For example if you have an object LineItem with an endpoint of "/line_items/". app/adapters/application.js import DS from 'ember-data'; export default DS.RESTAdapter.extend({ pathForType: function(modelName) { var decameliz

Freezable#freeze()

freezeObjectprivate Defined in packages/ember-runtime/lib/mixins/freezable.js:90 Freezes the object. Once this method has been called the object should no longer allow any properties to be edited. Returns: Object receiver

Test.checkWaiters()

checkWaiterspublicstatic Defined in packages/ember-testing/lib/test/waiters.js:74 Iterates through each registered test waiter, and invokes its callback. If any waiter returns false, this method will return true indicating that the waiters have not settled yet. This is generally used internally from the acceptance/integration test infrastructure.

DS.RESTAdapter#namespace

namespace{String} Defined in addon/adapters/rest.js:349 Endpoint paths can be prefixed with a namespace by setting the namespace property on the adapter: app/adapters/application.js import DS from 'ember-data'; export default DS.RESTAdapter.extend({ namespace: 'api/1' }); Requests for the Post model would now target /api/1/post/.

DefaultResolver#lookupDescription()

lookupDescription (fullName) protected Defined in packages/ember-application/lib/system/resolver.js:255 Returns a human-readable description for a fullName. Used by the Application namespace in assertions to describe the precise name of the class that Ember is looking for, rather than container keys. Parameters: fullName String the lookup string

DS.JSONAPISerializer#payloadTypeFromModelName()

payloadTypeFromModelName (modelname) Stringpublic Defined in addon/serializers/json-api.js:678 payloadTypeFromModelName can be used to change the mapping for the type in the payload, taken from the model name. Say your API namespaces the type of a model and expects the following payload when you update the post model: // POST /api/posts/1 { "data": { "id": 1, "type": "api::v1::post" } } By overwriting payloadTypeFromModelName you can specify that the namespaces model name for t

Inflector#disableCache;()

disableCache;public Defined in node_modules/ember-inflector/addon/lib/system/inflector.js:154

Observable#setProperties()

setProperties (hash) Objectpublic Defined in packages/ember-runtime/lib/mixins/observable.js:213 Sets a list of properties at once. These properties are set inside a single beginPropertyChanges and endPropertyChanges batch, so observers will be buffered. record.setProperties({ firstName: 'Charles', lastName: 'Jolley' }); Parameters: hash Object the hash of keys and values to set Returns: Object The passed in hash

LinkComponent#loadingClass

loadingClassStringprivate Defined in packages/ember-htmlbars/lib/components/link-to.js:412 The CSS class to apply to LinkComponent's element when its loading property is true. Default: loading

Ember.run.once()

once (target, method, args*) Objectpublic Defined in packages/ember-metal/lib/run_loop.js:341 Schedule a function to run one time during the current RunLoop. This is equivalent to calling scheduleOnce with the "actions" queue. Parameters: target [Object] The target of the method to invoke. method Function|String The method to invoke. If you pass a string it will be resolved on the target at the time the method is invoked. args* [Object] Optional arguments to pass to the timeout