OSDN Git Service

fix summary
[pettanr/pettanr.git] / app / assets / javascripts / models / ground_color.js.coffee
index 3f6ed03..09cfeaf 100644 (file)
@@ -15,11 +15,13 @@ class Pettanr.GroundColor extends Peta.Element
   @has_picture: () ->\r
     false\r
   \r
+  panel: () ->\r
+    new Pettanr.Panel({id: @get('panel_id')})\r
+  \r
+  element_face: () ->\r
+    new Pettanr.Views.GroundColor.ElementFace({element: this})\r
+  \r
   initialize: () ->\r
     if @id\r
       @url = @url + @id\r
   \r
-class Pettanr.GroundColor.Collection extends Backbone.Collection\r
-  model: Pettanr.GroundColor\r
-  url: '/ground_colors/'\r
-  \r