OSDN Git Service

fix remote folder's redirect
[pettanr/pettanr.git] / app / assets / javascripts / models / artist.js.coffee
1 class Pettanr.Artist extends Peta.Owner\r
2   url: '/artists/'\r
3   \r
4   @singular: () ->\r
5     'Artist'\r
6   \r
7   @plural: () ->\r
8     'Artists'\r
9   \r
10   defaults: {\r
11     id: null,\r
12     name: 'no name'\r
13   } \r
14   \r
15   overwrite: (options) ->\r
16   \r
17   icon_with_caption_view: (half = true, column_name = 'name', length = 12) ->\r
18     new Pettanr.Views.Common.IconWithCaption({item: this, half: half, column_name: column_name, length: length})\r
19   \r
20   initialize: () ->\r
21     if @id\r
22       @url = @url + @id\r
23   \r