Test#promise()

promise (resolver, label) public Defined in packages/ember-testing/lib/test/promise.js:21 This returns a thenable tailored for testing. It catches failed onSuccess callbacks and invokes the Ember.Test.adapter.exception callback in the last chained then. This method should be returned by async helpers such as wait. Parameters: resolver Function The function used to resolve the promise. label String An optional string for identifying the promise.

DefaultResolver#resolveTemplate()

resolveTemplate (parsedName) protected Defined in packages/ember-application/lib/system/resolver.js:301 Look up the template in Ember.TEMPLATES Parameters: parsedName Object a parseName object with the parsed fullName lookup string

DS.RESTAdapter#findHasMany()

findHasMany (store, snapshot, url) Promise Defined in addon/adapters/rest.js:595 Called by the store in order to fetch a JSON array for the unloaded records in a has-many relationship that were originally specified as a URL (inside of links). For example, if your original payload looks like this: { "post": { "id": 1, "title": "Rails is omakase", "links": { "comments": "/posts/1/comments" } } } This method will be called with the parent record and /posts/1/comments. The find

Templates.helpers.action()

actionpublic Defined in packages/ember-htmlbars/lib/keywords/action.js:9 The {{action}} helper provides a way to pass triggers for behavior (usually just a function) between components, and into components from controllers. Passing functions with the action helper There are three contexts an action helper can be used in. The first two contexts to discuss are attribute context, and Handlebars value context. {{! An example of attribute context }} <div onclick={{action "save"}}></div&

DS.Model#resetAttribute()

resetAttribute Defined in addon/-private/system/model/model.js:1036 Discards any unsaved changes to the given attribute. Example record.get('name'); // 'Untitled Document' record.set('name', 'Doc 1'); record.get('name'); // 'Doc 1' record.resetAttribute('name'); record.get('name'); // 'Untitled Document'

DS.RecordArrayManager#createAdapterPopulatedRecordArray()

createAdapterPopulatedRecordArray (typeClass, query) DS.AdapterPopulatedRecordArray Defined in addon/-private/system/record-array-manager.js:287 Create a DS.AdapterPopulatedRecordArray for a type with given query. Parameters: typeClass DS.Model query Object Returns: DS.AdapterPopulatedRecordArray

Ember.removeBeforeObserver()

removeBeforeObserver (obj, path, target, method) deprecatedprivate Defined in packages/ember-metal/lib/observer.js:93 Parameters: obj path String target Object|Function method [Function|String]

DS.Store#queryRecord()

queryRecord (modelName, query) Promise Defined in addon/-private/system/store.js:1151 Available since 1.13.0 This method makes a request for one record, where the id is not known beforehand (if the id is known, use findRecord instead). This method can be used when it is certain that the server will return a single object for the primary data. Let's assume our API provides an endpoint for the currently logged in user via: // GET /api/current_user { user: { id: 1234, username: 'admi

DS.Adapter

DS.Adapter Class Extends: Ember.Object Defined in: addon/adapter.js:8 Module: ember-data An adapter is an object that receives requests from a store and translates them into the appropriate action to take against your persistence layer. The persistence layer is usually an HTTP API, but may be anything, such as the browser's local storage. Typically the adapter is not invoked directly instead its functionality is accessed through the store. Creating an Adapter Create a new subclass of DS.Ad

Registry#resolver

resolverResolverprivate Defined in packages/container/lib/registry.js:59 An object that has a resolve method that resolves a name.