OSDN Git Service

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