OSDN Git Service

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