OSDN Git Service

fix: fetch fail
[pettanr/pettanr.git] / app / assets / javascripts / models / ground_color.js.coffee
index 3f6ed03..381f219 100644 (file)
@@ -1,5 +1,4 @@
 class Pettanr.GroundColor extends Peta.Element\r
-  url: '/ground_colors/'\r
   \r
   @singular: () ->\r
     'GroundColor'\r
@@ -9,17 +8,29 @@ class Pettanr.GroundColor extends Peta.Element
   \r
   defaults: {\r
     id: null,\r
-    code: 0,\r
+    code: 0xeeeeee,\r
+    orientation: 0\r
   } \r
   \r
+  @pick_item_name: () ->\r
+    'ground_color'\r
+  \r
+  @traceable_item_names: () ->\r
+    []\r
+  \r
+  pick: (picked_item) ->\r
+    {\r
+    }\r
+  \r
   @has_picture: () ->\r
     false\r
   \r
-  initialize: () ->\r
-    if @id\r
-      @url = @url + @id\r
+  @pick_item_name: () ->\r
+    ''\r
+  \r
+  element_face: () ->\r
+    new Pettanr.Views.GroundColor.ElementFace({element: this})\r
   \r
-class Pettanr.GroundColor.Collection extends Backbone.Collection\r
-  model: Pettanr.GroundColor\r
-  url: '/ground_colors/'\r
+  initialize: (attr, options) ->\r
+    super(attr, options)\r
   \r