Created
May 15, 2013 12:56
-
-
Save jfreeze/5583812 to your computer and use it in GitHub Desktop.
Adjust ember-data url to add .json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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