OSDN Git Service

fix:replace row break
[pettanr/pettanr.git] / app / assets / javascripts / models / comic_story.js.coffee
index ae1c2ef..e441d26 100644 (file)
@@ -1,5 +1,4 @@
 class Pettanr.ComicStory extends Peta.Leaf\r
-  url: '/comic_stories/'\r
   \r
   @singular: () ->\r
     'ComicStory'\r
@@ -15,10 +14,10 @@ class Pettanr.ComicStory extends Peta.Leaf
   } \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
@@ -37,6 +36,4 @@ class Pettanr.ComicStory extends Peta.Leaf
   \r
   initialize: (attr = {}, options = {}) ->\r
     super(attr, options)\r
-    if @id\r
-      @url = @url + @id\r
   \r