OSDN Git Service

Merge branch 'v06' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v06
[pettanr/pettanr.git] / app / assets / javascripts / models / author.js.coffee
1 class Pettanr.Author extends Peta.Owner\r
2   url: '/authors/'\r
3   \r
4   @singular: () ->\r
5     'Author'\r
6   \r
7   @plural: () ->\r
8     'Authors'\r
9   \r
10   defaults: {\r
11     id: null,\r
12     name: 'no name'\r
13   } \r
14   \r
15   initialize: () ->\r
16     if @id\r
17       @url = @url + @id\r
18 \r
19 \r