DataAdapter#getFilters()

getFiltersArraypublic Defined in packages/ember-extension-support/lib/data_adapter.js:115 Specifies how records can be filtered. Records returned will need to have a filterValues property with a key for every name in the returned array. Returns: Array List of objects defining filters. The object should have a `name` and `desc` property.

DS.Store#typeMapFor()

typeMapFor (typeClass) Objectprivate Defined in addon/-private/system/store.js:1831 Returns a map of IDs to client IDs for a given type. Parameters: typeClass DS.Model Returns: Object typeMap

RSVP.Promise#catch()

catch (onRejection, label) Promise Defined in bower_components/rsvp/lib/rsvp/promise.js:410 catch is simply sugar for then(undefined, onRejection) which makes it the same as the catch block of a try/catch statement. function findAuthor(){ throw new Error('couldn't find that author'); } // synchronous try { findAuthor(); } catch(reason) { // something went wrong } // async with promises findAuthor().catch(function(reason){ // something went wrong }); Parameters: onRejection Fun

DS.Model.relationships

relationshipsEmber.Mapstatic Defined in addon/-private/system/relationships/ext.js:325 The model's relationships as a map, keyed on the type of the relationship. The value of each entry is an array containing a descriptor for each relationship with that type, describing the name of the relationship as well as the type. For example, given the following model definition: app/models/blog.js import DS from 'ember-data'; export default DS.Model.extend({ users: DS.hasMany('user'), owner: DS.

HistoryLocation#getURL()

getURLStringprivate Defined in packages/ember-routing/lib/location/history_location.js:59 Returns the current location.pathname without rootURL or baseURL Returns: String url

Test.Adapter

Ember.Test.Adapter Class PUBLIC Defined in: packages/ember-testing/lib/adapters/adapter.js:10 Module: ember-testing The primary purpose of this class is to create hooks that can be implemented by an adapter for various test frameworks.

ControllerMixin#replaceRoute()

replaceRoute (name, models) private Defined in packages/ember-routing/lib/ext/controller.js:122 Transition into another route while replacing the current URL, if possible. This will replace the current history entry instead of adding a new one. Beside that, it is identical to transitionToRoute in all other respects. aController.replaceRoute('blogPosts'); aController.replaceRoute('blogPosts.recentEntries'); Optionally supply a model for the route in question. The model will be serialized in

DS.RESTAdapter#updateRecord()

updateRecord (store, type, snapshot) Promise Inherited from DS.Adapter but overwritten in addon/adapters/rest.js:735 Called by the store when an existing record is saved via the save method on a model record instance. The updateRecord method serializes the record and makes an Ajax (HTTP PUT) request to a URL computed by buildURL. See serialize for information on how to customize the serialized form of a record. Parameters: store DS.Store type DS.Model snapshot DS.Snapshot Retur

Templates.helpers.query-params()

query-params (hash) Objectpublic Defined in packages/ember-htmlbars/lib/helpers/query-params.js:9 This is a helper to be used in conjunction with the link-to helper. It will supply url query parameters to the target route. Example {{#link-to 'posts' (query-params direction="asc")}}Sort{{/link-to}} Parameters: hash Object takes a hash of query parameters Returns: Object A `QueryParams` object for `{{link-to}}`

String#underscore()

underscore (str) Stringpublic Defined in packages/ember-runtime/lib/system/string.js:300 More general than decamelize. Returns the lower_case_and_underscored form of a string. 'innerHTML'.underscore(); // 'inner_html' 'action_name'.underscore(); // 'action_name' 'css-class-name'.underscore(); // 'css_class_name' 'my favorite items'.underscore(); // 'my_favorite_items' 'privateDocs/ownerInvoice'.underscore(); // 'private_docs/owner_invoice' Parameters: str String T