(models, options)
| 23 | } |
| 24 | |
| 25 | initialize (models, options) { |
| 26 | if (options == null) { options = {} } |
| 27 | if (__guard__(typeof window !== 'undefined' && window !== null ? window.location : undefined, x => x.pathname)) { if (options.url == null) { options.url = '/db/products?path=' + window.location.pathname } } |
| 28 | return super.initialize(models, options) |
| 29 | } |
| 30 | |
| 31 | getByName (name) { return this.findWhere({ name }) } |
| 32 |
nothing calls this directly
no test coverage detected