OSDN Git Service

fix: fetch fail
[pettanr/pettanr.git] / app / assets / javascripts / models / author.js.coffee
index 4c8745e..5a92917 100644 (file)
@@ -1,5 +1,4 @@
 class Pettanr.Author extends Peta.Owner\r
-  url: '/authors/'\r
   \r
   @singular: () ->\r
     'Author'\r
@@ -12,10 +11,8 @@ class Pettanr.Author extends Peta.Owner
     name: 'no name'\r
   } \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
+  overwrite: (options) ->\r
   \r
-  initialize: () ->\r
-    if @id\r
-      @url = @url + @id\r
+  initialize: (attr = {}, options = {}) ->\r
+    super(attr, options)\r
   \r