Skip to content

Instantly share code, notes, and snippets.

@jfreeze
Created May 15, 2013 12:56
Show Gist options
  • Save jfreeze/5583812 to your computer and use it in GitHub Desktop.
Save jfreeze/5583812 to your computer and use it in GitHub Desktop.
Adjust ember-data url to add .json
http://stackoverflow.com/questions/14828478/ember-js-ember-data-restadapter-fail-to-load-json
// TravelClient.CUSTOMAdapter = DS.RESTAdapter.extend({
bulkCommit: false,
url: "http://remote_server_address",
buildURL: function(record, suffix) {
var s = this._super(record, suffix);
return s + ".json";
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment