OSDN Git Service

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