OSDN Git Service

add credit
[pettanr/pettanr.git] / app / assets / javascripts / models / story_sheet.js.coffee
1 class Pettanr.StorySheet extends Peta.Leaf\r
2   url: '/story_sheets/'\r
3   \r
4   @singular: () ->\r
5     'StorySheet'\r
6   \r
7   @plural: () ->\r
8     'StorySheets'\r
9   \r
10   defaults: {\r
11     id: null,\r
12     story_id: null,\r
13     sheet_id: null,\r
14     t: null\r
15   } \r
16   \r
17   initialize: () ->\r
18     if @id\r
19       @url = @url + @id\r
20   \r
21 class Pettanr.StorySheet.Collection extends Backbone.Collection\r
22   model: Pettanr.StorySheet\r
23   url: '/story_sheets'\r