OSDN Git Service

fix: view system2
[pettanr/pettanr.git] / app / assets / javascripts / models / sheet.js.coffee
index 47e5a28..ecfba80 100644 (file)
@@ -29,6 +29,10 @@ class Pettanr.Sheet extends Peta.Root
   label: (shorten_length) ->\r
     @_label('title', shorten_length)\r
   \r
+  # item is root, but binder like\r
+  play_url: () ->\r
+    Pettanr.url(@table_name(), 'play', {id: @get('id')})\r
+  \r
   initialize: (attr = {}, options = {}) ->\r
     super(attr, options)\r
   \r