OSDN Git Service

fix event names
[pettanr/pettanr.git] / app / assets / javascripts / models / sheet.js.coffee
index 1c377ad..1be6aee 100644 (file)
@@ -16,6 +16,11 @@ class Pettanr.Sheet extends Peta.Root
   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
+    @set('author_id', operators.author.id)\r
+  \r
   is_visible: (operators) ->\r
     switch super(operators)\r
       when null\r