aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/coffee/api-documentation/collections/web-service-actions.coffee
blob: 955ae184a39ede63ce68b625f98402ee32ba9ad0 (plain)
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