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 58e66d6..1c377ad 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
@@ -26,6 +29,3 @@ class Pettanr.Sheet extends Peta.Root
     if @id\r
       @url = @url + @id\r
   \r
-class Pettanr.Sheet.Collection extends Backbone.Collection\r
-  model: Pettanr.Sheet\r
-  url: '/sheets'\r