OSDN Git Service

fix: show's destroy button
[pettanr/pettanr.git] / app / assets / javascripts / models / system_picture.js.coffee
index f7c2832..20168d3 100644 (file)
@@ -1,5 +1,4 @@
 class Pettanr.SystemPicture extends Peta.SystemResource\r
-  url: '/system_pictures/'\r
   \r
   @singular: () ->\r
     'SystemPicture'\r
@@ -42,7 +41,6 @@ class Pettanr.SystemPicture extends Peta.SystemResource
   retrieve_symbol: (item) -> \r
     @trigger('ready:symbol', item.tmb_opt_img_tag())\r
   \r
-  initialize: () ->\r
-    if @id\r
-      @url = @url + @id\r
+  initialize: (attr = {}, options = {}) ->\r
+    super(attr, options)\r
   \r