OSDN Git Service

add credit
[pettanr/pettanr.git] / app / assets / javascripts / models / sheet.js.coffee
index 58e66d6..6b1c72b 100644 (file)
@@ -13,6 +13,9 @@ class Pettanr.Sheet extends Peta.Root
     author_id: null\r
   } \r
   \r
+  author: () ->\r
+    new Pettanr.Author({id: @get('author_id')})\r
+  \r
   is_visible: (operators) ->\r
     switch super(operators)\r
       when null\r