OSDN Git Service

1446c00f43f291e519b812d6555c3d488993ddfb
[pettanr/pettanr.git] / app / assets / javascripts / models / story_sheet.js.coffee
1 class Pettanr.StorySheet extends Peta.Leaf\r
2   \r
3   @singular: () ->\r
4     'StorySheet'\r
5   \r
6   @plural: () ->\r
7     'StorySheets'\r
8   \r
9   defaults: {\r
10     id: null,\r
11     story_id: null,\r
12     sheet_id: null,\r
13     t: null\r
14   } \r
15   \r
16   has_sheet: () ->\r
17     if @get('sheet_id')\r
18       true\r
19     else\r
20       false\r
21   \r
22   initialize: (attr = {}, options = {}) ->\r
23     super(attr, options)\r
24   \r