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=3695a6f100bf2e84a5ca582aac3a8a0fec852762;hb=d7c8065be895b67dc453b0e11ad0f259f1ca6706;hpb=eaaa49b6defd70aaef6b9fc6658224bb2d4f522a diff --git a/app/assets/javascripts/models/author.js.coffee b/app/assets/javascripts/models/author.js.coffee index 3695a6f1..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' @@ -14,10 +13,6 @@ class Pettanr.Author extends Peta.Owner overwrite: (options) -> - 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}) - - initialize: () -> - if @id - @url = @url + @id + initialize: (attr = {}, options = {}) -> + super(attr, options)