OSDN Git Service

v07
[pettanr/pettanr.git] / app / assets / javascripts / models / story.js.coffee
index dc17136..9357443 100644 (file)
@@ -1,5 +1,4 @@
 class Pettanr.Story extends Peta.Binder\r
-  url: '/stories/'\r
   \r
   @singular: () ->\r
     'Story'\r
@@ -13,9 +12,6 @@ class Pettanr.Story extends Peta.Binder
     author_id: null\r
   } \r
   \r
-  author: () ->\r
-    new Pettanr.Cache.Retriever(Pettanr.Author, @get('author_id'))\r
-  \r
   overwrite: (options) ->\r
     operators = Pettanr.cache.operators\r
     return false if not operators.author\r
@@ -32,6 +28,4 @@ class Pettanr.Story extends Peta.Binder
   \r
   initialize: (attr = {}, options = {}) ->\r
     super(attr, options)\r
-    if @id\r
-      @url = @url + @id\r
   \r