()
| 382 | } |
| 383 | |
| 384 | function observeOptionsBeforeSave() { |
| 385 | const Model = arguments[0] || Product; |
| 386 | Model.observe('before save', function(ctx, next) { |
| 387 | actualOptions = ctx.options; |
| 388 | next(); |
| 389 | }); |
| 390 | } |
| 391 | |
| 392 | function observeOptionsBeforeDelete() { |
| 393 | const Model = arguments[0] || Product; |
no test coverage detected
searching dependent graphs…