Method
constructor
(models, options, forModel, status)
Source from the content-addressed store, hash-verified
| 18 | } |
| 19 | |
| 20 | constructor (models, options, forModel, status) { |
| 21 | super(...arguments) |
| 22 | if (!status) { status = 'pending' } |
| 23 | this.status = status |
| 24 | const identifier = !forModel.get('original') ? '_id' : 'original' |
| 25 | this.url = `${forModel.urlRoot}/${forModel.get(identifier)}/patches?status=${this.status}` |
| 26 | } |
| 27 | } |
| 28 | PatchesCollection.initClass() |
| 29 | return PatchesCollection |
Callers
nothing calls this directly
Tested by
no test coverage detected