OSDN Git Service

Merge branch 'v06' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v06
[pettanr/pettanr.git] / app / assets / javascripts / models / scroll.js.coffee
index 5070dad..c312605 100644 (file)
@@ -12,6 +12,9 @@ class Pettanr.Scroll extends Peta.Binder
     visible: 0\r
   } \r
   \r
+  author: () ->\r
+    new Pettanr.Author({id: @get('author_id')})\r
+  \r
   overwrite: (options) ->\r
     operators = options.operators\r
     return false if not operators.author\r
@@ -21,6 +24,3 @@ class Pettanr.Scroll extends Peta.Binder
     if @id\r
       @url = @url + @id\r
   \r
-class Pettanr.Scroll.Collection extends Backbone.Collection\r
-  model: Pettanr.Scroll\r
-  url: '/scrolls'\r