codecombat/app/collections/TrialRequests.coffee

12 lines
343 B
CoffeeScript
Raw Normal View History

CocoCollection = require 'collections/CocoCollection'
TrialRequest = require 'models/TrialRequest'
module.exports = class TrialRequestCollection extends CocoCollection
url: '/db/trial.request'
model: TrialRequest
fetchOwn: (options) ->
options = _.extend({data: {}}, options)
2016-03-09 19:59:25 -05:00
options.data.applicant = me.id
@fetch(options)