Sha256: b4d47b162f1ab3f1cd1dd01d5437f3ce88d09206e21481684e7b0f46a5941956

Contents?: true

Size: 559 Bytes

Versions: 1

Compression:

Stored size: 559 Bytes

Contents

class window.TestingNote extends Backbone.Model
  url: ->
    if @isNew()
      "#{App.relativeRoot()}/tickets/#{@get('ticketId')}/testing_notes"
    else
      "#{App.relativeRoot()}/tickets/#{@get('ticketId')}/testing_notes/#{@get('id')}"


class window.TestingNotes extends Backbone.Collection
  model: TestingNote
  url: -> "#{App.relativeRoot()}/tickets/#{@ticket.get('id')}/testing_notes"
  
  initialize: (models, options)->
    super(models, options)
    @ticket = options.ticket
  
  since: (date)->
    @filter (note)-> note.get('createdAt') > date

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
houston-core-0.5.0.beta1 app/assets/javascripts/app/models/testing_note.coffee