Skip to content

Instantly share code, notes, and snippets.

@unamashana
Created December 15, 2013 07:35
Show Gist options
  • Save unamashana/7970050 to your computer and use it in GitHub Desktop.
Save unamashana/7970050 to your computer and use it in GitHub Desktop.
SB.Collections.ReplyList = Backbone.Collection.extend(
model: SB.Models.Reply
ticket_id: null
name: "replies"
initialize: (models, options) ->
@ticket = options.ticket
url: ->
"/tickets/#{@ticket.id}/replies"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment