class Pettanr.StorySheet extends Peta.Leaf\r
- url: '/story_sheets/'\r
\r
@singular: () ->\r
'StorySheet'\r
t: null\r
} \r
\r
- story: () ->\r
- new Pettanr.Story({id: @get('story_id')})\r
- \r
- sheet: () ->\r
- new Pettanr.Sheet({id: @get('sheet_id')})\r
- \r
has_sheet: () ->\r
if @get('sheet_id')\r
true\r
\r
initialize: (attr = {}, options = {}) ->\r
super(attr, options)\r
- if @id\r
- @url = @url + @id\r
\r