(toPurchase)
| 18 | } |
| 19 | |
| 20 | static makeFor (toPurchase) { |
| 21 | return new Purchase({ |
| 22 | recipient: me.id, |
| 23 | purchaser: me.id, |
| 24 | purchased: { |
| 25 | original: toPurchase.get('original'), |
| 26 | collection: _.string.underscored(toPurchase.constructor.className) |
| 27 | } |
| 28 | }) |
| 29 | } |
| 30 | } |
| 31 | Purchase.initClass() |
| 32 | return Purchase |
no test coverage detected