class Pettanr.ComicStory extends Peta.Leaf\r
- url: '/comic_stories/'\r
\r
@singular: () ->\r
'ComicStory'\r
} \r
\r
comic: () ->\r
- new Pettanr.Comic({id: @get('comic_id')})\r
+ new Pettanr.Cache.Retriever(Pettanr.Comic, @get('comic_id'))\r
\r
story: () ->\r
- new Pettanr.Story({id: @get('story_id')})\r
+ new Pettanr.Cache.Retriever(Pettanr.Story, @get('story_id'))\r
\r
has_story: () ->\r
if @get('story_id')\r
\r
initialize: (attr = {}, options = {}) ->\r
super(attr, options)\r
- if @id\r
- @url = @url + @id\r
\r