OSDN Git Service

Merge branch 'v06' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v06
[pettanr/pettanr.git] / app / assets / javascripts / models / sheet.js.coffee
index a25518a..ecfba80 100644 (file)
@@ -12,9 +12,6 @@ class Pettanr.Sheet extends Peta.Root
     author_id: null\r
   } \r
   \r
-  author: () ->\r
-    new Pettanr.Cache.Retriever(Pettanr.Author, @get('author_id'))\r
-  \r
   overwrite: (options) ->\r
     operators = Pettanr.cache.operators\r
     return false if not operators.author\r
@@ -29,6 +26,13 @@ class Pettanr.Sheet extends Peta.Root
       else\r
         @get('visible') > 0\r
   \r
+  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