X-Git-Url: http://git.osdn.net/view?p=pettanr%2Fpettanr.git;a=blobdiff_plain;f=app%2Fassets%2Fjavascripts%2Fmodels%2Fauthor.js.coffee;h=5a92917cafc6926cfe3e5efca5e65a6a1e71edff;hp=4c8745e7570c21591ecfb50c516a0f9b74d2d992;hb=d7c8065be895b67dc453b0e11ad0f259f1ca6706;hpb=3f4cd8c9a4ce4336a659d7ad7f7093c0c1cd6ee9 diff --git a/app/assets/javascripts/models/author.js.coffee b/app/assets/javascripts/models/author.js.coffee index 4c8745e7..5a92917c 100644 --- a/app/assets/javascripts/models/author.js.coffee +++ b/app/assets/javascripts/models/author.js.coffee @@ -1,5 +1,4 @@ class Pettanr.Author extends Peta.Owner - url: '/authors/' @singular: () -> 'Author' @@ -12,10 +11,8 @@ class Pettanr.Author extends Peta.Owner name: 'no name' } - icon_with_caption_view: (half = true, column_name = 'name', length = 12) -> - new Pettanr.Views.Common.IconWithCaption({item: this, half: half, column_name: column_name, length: length}) + overwrite: (options) -> - initialize: () -> - if @id - @url = @url + @id + initialize: (attr = {}, options = {}) -> + super(attr, options)