-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Here's a simple request. Would love to have the ability to utilize custom save roues. Why? There's sometimes special business logic we want to perform when saving records.
I can hack this in right now by modifying the es.objects.NAME.prototype.esRoutes['commit'] before saving and then changing it back after saving, but it would be nice if there was an elegant solution to the one you have here for custom load routes
es.objects.RevCoCompaniesCollection.prototype.loadHostCompanies = function (success, error, state) {
return this.load({
route: this.esRoutes['LoadHostCompanies'],
success: success,
error: error,
state: state
});
};
es.objects.RevCoCompaniesCollection.prototype.esRoutes['LoadHostCompanies'] = { method: 'GET', url: 'RevCoCompaniesCollection_LoadHostCompanies', response: 'collection' }
Metadata
Metadata
Assignees
Labels
No labels