OSDN Git Service

add credit
[pettanr/pettanr.git] / app / assets / javascripts / models / comic.js.coffee
index 469774c..8cb686a 100644 (file)
@@ -13,6 +13,9 @@ class Pettanr.Comic extends Peta.Binder
     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