Update model request interface and references

This commit is contained in:
gconsidine
2017-11-09 17:01:32 -05:00
parent 4cd2f93c31
commit e8fd40ace0
15 changed files with 260 additions and 209 deletions
+10 -10
View File
@@ -1,21 +1,21 @@
let BaseModel;
let ModelsStrings;
let Base;
let strings;
function OrganizationModel (method, resource, graft) {
BaseModel.call(this, 'organizations');
function OrganizationModel (method, resource, config) {
Base.call(this, 'organizations');
this.Constructor = OrganizationModel;
this.label = ModelsStrings.get('labels.ORGANIZATION');
this.label = strings.get('labels.ORGANIZATION');
return this.create(method, resource, graft);
return this.create(method, resource, config);
}
function OrganizationModelLoader (
_BaseModel_,
_ModelsStrings_
BaseModel,
ModelsStrings
) {
BaseModel = _BaseModel_;
ModelsStrings = _ModelsStrings_;
Base = BaseModel;
strings = ModelsStrings;
return OrganizationModel;
}