DS.RecordArray#save()

saveDS.PromiseArray Defined in addon/-private/system/record-arrays/record-array.js:170 Saves all of the records in the RecordArray. Example var messages = store.peekAll('message'); messages.forEach(function(message) { message.set('hasBeenSeen', true); }); messages.save(); Returns: DS.PromiseArray promise

Installing the Inspector

Installing the Inspector You can install the Inspector on Google Chrome, Firefox, other browsers (via a bookmarklet), and on mobile devices by following the steps below. Google Chrome You can install the Inspector on Google Chrome as a new Developer Tool. To begin, visit the Extension page on the Chrome Web Store. Click on "Add To Chrome": Once installed, go to an Ember application, open the Developer Tools, and click on the Ember tab at the far right. File:// protocol To use the Inspector

Test#pauseTest()

pauseTestObjectpublic Defined in packages/ember-testing/lib/helpers/pause_test.js:6 Available since 1.9.0 Pauses the current test - this is useful for debugging while testing or for test-driving. It allows you to inspect the state of your application at any point. Example (The test will pause before clicking the button): javascript visit('/') return pauseTest(); click('.btn'); Returns: Object A promise that will never resolve

Backburner

Backburner Class PRIVATE Defined in: packages/ember-metal/lib/index.js:281 Module: ember-metal

DS.JSONAPISerializer#modelNameFromPayloadType()

modelNameFromPayloadType (payloadType) Stringpublic Inherited from DS.JSONSerializer but overwritten in addon/serializers/json-api.js:630 modelNameFromPayloadType can be used to change the mapping for a DS model name, taken from the value in the payload. Say your API namespaces the type of a model and returns the following payload for the post model: // GET /api/posts/1 { "data": { "id": 1, "type: "api::v1::post" } } By overwriting modelNameFromPayloadType you can specify that

HistoryLocation#onUpdateURL()

onUpdateURL (callback) private Defined in packages/ember-routing/lib/location/history_location.js:175 Register a callback to be invoked whenever the browser history changes, including using forward and back buttons. Parameters: callback Function

Ember.cacheFor()

cacheFor (obj, key) Objectpublic Defined in packages/ember-metal/lib/computed.js:554 Returns the cached value for a property, if one exists. This can be useful for peeking at the value of a computed property that is generated lazily, without accidentally causing it to be created. Parameters: obj Object the object whose property you want to check key String the name of the property whose cached value you want to return Returns: Object the cached value

DS.Model#rolledBack event

rolledBack Defined in addon/-private/system/model/model.js:472 Fired when the record is rolled back.

Test#originalMethods

originalMethods{Object}private Defined in packages/ember-testing/lib/ext/application.js:29 Available since 1.3.0 This property will contain the original methods that were registered on the helperContainer before injectTestHelpers is called. When removeTestHelpers is called, these methods are restored to the helperContainer. Default: {}

Customizing Serializers

Customizing Serializers In Ember Data, serializers format the data sent to and received from the backend store. By default, Ember Data serializes data using the JSON API format. If your backend uses a different format, Ember Data allows you to customize the serializer or use a different serializer entirely. Ember Data ships with 3 Serializers. The JSONAPISerializer is the default serializer and works with JSON API backends. The JSONSerializer is a simple serializer for working with single jso