OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'v06' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v06
[pettanr/pettanr.git]
/
app
/
assets
/
javascripts
/
models
/
story.js.coffee
diff --git
a/app/assets/javascripts/models/story.js.coffee
b/app/assets/javascripts/models/story.js.coffee
index
df37247
..
6d5482f
100644
(file)
--- a/
app/assets/javascripts/models/story.js.coffee
+++ b/
app/assets/javascripts/models/story.js.coffee
@@
-16,6
+16,11
@@
class Pettanr.Story extends Peta.Binder
author: () ->
\r
new Pettanr.Author({id: @get('author_id')})
\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
+ @set('author_id', operators.author.id)
\r
+
\r
is_visible: (operators) ->
\r
switch super(operators)
\r
when null
\r
is_visible: (operators) ->
\r
switch super(operators)
\r
when null
\r