OSDN Git Service

fix: fetch fail
[pettanr/pettanr.git] / app / assets / javascripts / models / author.js.coffee
index acf6412..5a92917 100644 (file)
@@ -1,5 +1,4 @@
 class Pettanr.Author extends Peta.Owner\r
-  url: '/authors/'\r
   \r
   @singular: () ->\r
     'Author'\r
@@ -12,16 +11,8 @@ class Pettanr.Author extends Peta.Owner
     name: 'no name'\r
   } \r
   \r
-  name_view: (length = null) ->\r
-    new Pettanr.Views.Author.Name({item: this, length: length})\r
+  overwrite: (options) ->\r
   \r
-  icon_with_caption_view: (half, column_name, length) ->\r
-    new Pettanr.Views.Common.IconWithCaption({item: this, half: half, column_name: column_name, length: length})\r
+  initialize: (attr = {}, options = {}) ->\r
+    super(attr, options)\r
   \r
-  initialize: () ->\r
-    if @id\r
-      @url = @url + @id\r
-  \r
-class Pettanr.Author.Collection extends Backbone.Collection\r
-  model: Pettanr.Author\r
-  url: '/authors'\r