Sha256: 94f65d3a5f2ebe47df4b9f4ad2dd162416481201ad9f1118f5258cc852c0552e

Contents?: true

Size: 455 Bytes

Versions: 4

Compression:

Stored size: 455 Bytes

Contents

Backbone = require('backbone')
CardHistoryModel = require('./card_history')
$ = require('jquery')
config = require('../config')

module.exports = class CardHistories extends Backbone.Collection
  collectionName: 'CardHistories'

  model: CardHistoryModel

  query: {}

  url: ()->
    url = '/cards/' + @title + '/history.json'
    config.root_path + config.api_path + url

  parse: (response)->
    @pagination = response.pagination
    response.history

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
carte-server-1.0.11 lib/carte/client/models/card_histories.coffee
carte-server-1.0.10 lib/carte/client/models/card_histories.coffee
carte-server-1.0.9 lib/carte/client/models/card_histories.coffee
carte-server-1.0.8 lib/carte/client/models/card_histories.coffee