Species edit refactor
This commit is contained in:
parent
cdc825cc6a
commit
45223fd57f
16 changed files with 181 additions and 160 deletions
|
@ -5,10 +5,13 @@ export default DS.RESTAdapter.extend({
|
|||
namespace: function() {
|
||||
return 'api/' + this.get('globals.genus');
|
||||
}.property(),
|
||||
|
||||
host: function() {
|
||||
return this.get('globals.apiURL');
|
||||
}.property(),
|
||||
|
||||
coalesceFindRequests: true,
|
||||
|
||||
ajaxError: function(jqXHR) {
|
||||
// http://stackoverflow.com/a/24027443
|
||||
var error = this._super(jqXHR);
|
||||
|
@ -25,5 +28,5 @@ export default DS.RESTAdapter.extend({
|
|||
} else {
|
||||
return error;
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
|
|
Reference in a new issue