OSDN Git Service

fix: fetch fail
[pettanr/pettanr.git] / app / assets / javascripts / models / author.js.coffee
index 3695a6f..5a92917 100644 (file)
@@ -1,5 +1,4 @@
 class Pettanr.Author extends Peta.Owner\r
-  url: '/authors/'\r
   \r
   @singular: () ->\r
     'Author'\r
@@ -14,10 +13,6 @@ class Pettanr.Author extends Peta.Owner
   \r
   overwrite: (options) ->\r
   \r
-  icon_with_caption_view: (half = true, column_name = 'name', length = 12) ->\r
-    new Pettanr.Views.Common.IconWithCaption({item: this, half: half, column_name: column_name, length: length})\r
-  \r
-  initialize: () ->\r
-    if @id\r
-      @url = @url + @id\r
+  initialize: (attr = {}, options = {}) ->\r
+    super(attr, options)\r
   \r