1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
define [ 'backbone', 'api-documentation/models/web-service-action' ], ( Backbone, WebServiceAction ) -> class WebServiceActions extends Backbone.Collection model: WebServiceAction comparator: 'key' initialize: (models, options) -> _.each models, (model) -> model.path = options.path + '/' + model.key