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
add credit
[pettanr/pettanr.git]
/
app
/
assets
/
javascripts
/
models
/
sheet.js.coffee
diff --git
a/app/assets/javascripts/models/sheet.js.coffee
b/app/assets/javascripts/models/sheet.js.coffee
index
1a5ef07
..
6b1c72b
100644
(file)
--- a/
app/assets/javascripts/models/sheet.js.coffee
+++ b/
app/assets/javascripts/models/sheet.js.coffee
@@
-1,4
+1,6
@@
class Pettanr.Sheet extends Peta.Root
\r
class Pettanr.Sheet extends Peta.Root
\r
+ url: '/sheets/'
\r
+
\r
@singular: () ->
\r
'Sheet'
\r
\r
@singular: () ->
\r
'Sheet'
\r
\r
@@
-11,6
+13,9
@@
class Pettanr.Sheet extends Peta.Root
author_id: null
\r
}
\r
\r
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
is_visible: (operators) ->
\r
switch super(operators)
\r
when null
\r