(options)
| 3391 | } |
| 3392 | |
| 3393 | static _expandAttributes(options) { |
| 3394 | if (!_.isPlainObject(options.attributes)) { |
| 3395 | return; |
| 3396 | } |
| 3397 | let attributes = Object.keys(this.rawAttributes); |
| 3398 | |
| 3399 | if (options.attributes.exclude) { |
| 3400 | attributes = attributes.filter(elem => !options.attributes.exclude.includes(elem)); |
| 3401 | } |
| 3402 | |
| 3403 | if (options.attributes.include) { |
| 3404 | attributes = attributes.concat(options.attributes.include); |
| 3405 | } |
| 3406 | |
| 3407 | options.attributes = attributes; |
| 3408 | } |
| 3409 | |
| 3410 | // Inject _scope into options. |
| 3411 | static _injectScope(options) { |
no outgoing calls
no test coverage detected