(scope, name, options)
| 640 | options.replaceOnPUT = options.replaceOnPUT !== false; |
| 641 | |
| 642 | function setRemoting(scope, name, options) { |
| 643 | const fn = scope[name]; |
| 644 | fn._delegate = true; |
| 645 | options.isStatic = scope === PersistedModel; |
| 646 | PersistedModel.remoteMethod(name, options); |
| 647 | } |
| 648 | |
| 649 | setRemoting(PersistedModel, 'create', { |
| 650 | description: 'Create a new instance of the model and persist it into the data source.', |
no outgoing calls
no test coverage detected
searching dependent graphs…